-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.19 KB
/
deploy.yml
File metadata and controls
47 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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