deploy.yaml
1 name: Deploy 2 3 on: 4 push: 5 branches: 6 - "master" 7 8 jobs: 9 deploy: 10 runs-on: ubuntu-latest 11 steps: 12 - uses: actions/checkout@v2 13 - name: Prepare deploy directory 14 run: | 15 mkdir ./deploy 16 cp -r dist ./deploy 17 cp -r assets ./deploy 18 cp -r index.html ./deploy 19 - name: Bundle spec 20 uses: mpetrunic/swagger-cli-action@v1.0.0 21 with: 22 command: "bundle ./beacon-node-oapi.yaml -r -t yaml -o ./deploy/beacon-node-oapi.yaml" 23 - name: Publish to Github Pages 24 uses: peaceiris/actions-gh-pages@v3 25 with: 26 github_token: ${{ secrets.GITHUB_TOKEN }} 27 publish_dir: ./deploy 28 publish_branch: gh-pages