Fix code example qualifiers (#373) #28
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: Deploy | |
| on: | |
| push: | |
| tags: | |
| - "*.*.*" | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build-guidelines.yml | |
| deploy: | |
| needs: build | |
| # Always run so that 'deploy' explicitly fails when build fails, | |
| # rather than being skipped. Skipped jobs don't block merge queue. | |
| if: always() | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Fail if build failed | |
| if: needs.build.result != 'success' | |
| run: | | |
| echo "::error::build workflow failed with result: ${{ needs.build.result }}" | |
| exit 1 | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: build-artifacts | |
| path: build | |
| - name: Check artifacts | |
| run: | | |
| ls build | |
| ls build/html | |
| - name: Add CNAME to be able to be seen at coding-guidelines.arewesafetycriticalyet.org | |
| run: | | |
| echo "coding-guidelines.arewesafetycriticalyet.org" > ./build/html/CNAME | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build/html | |