Generate by using diff apply #50
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build-and-deploy | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2.3.1 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v1 | |
| with: | |
| node-version: '16.x' | |
| - run: git submodule update --init --recommend-shallow | |
| - run: npm ci | |
| - run: npm test | |
| - run: npm run build-docs | |
| - run: npm run generate | |
| - name: Check generated file is up-to-date with gpuweb submodule (`npm run generate` to fix this) | |
| run: git update-index --really-refresh && git diff-index --quiet HEAD | |
| - name: Deploy 📦 | |
| if: ${{ success() && github.ref == 'refs/heads/main' }} | |
| uses: JamesIves/github-pages-deploy-action@3.6.2 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| BRANCH: gh-pages | |
| FOLDER: tsdoc-src/out |