Skip to content

[Coding Rule]: Do not read from uninitialized union fields (#302) #30

[Coding Rule]: Do not read from uninitialized union fields (#302)

[Coding Rule]: Do not read from uninitialized union fields (#302) #30

Workflow file for this run

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