Add CNAME to deploy step (#155) #12
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 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - 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 | |