Skip to content

Commit fbf2a32

Browse files
authored
Add deploy step (#3)
1 parent e60d33d commit fbf2a32

File tree

4 files changed

+41
-7
lines changed

4 files changed

+41
-7
lines changed

.github/workflows/build-guidelines.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
name: Build Safety-Critical Rust Coding Guidelines
1+
name: Build
22

33
on:
4-
# Add on:
54
push:
65
tags:
76
- "*.*.*"
@@ -58,11 +57,11 @@ jobs:
5857
exit 1
5958
fi
6059
61-
- name: Archive build logs
60+
- name: Archive build artifacts
6261
uses: actions/upload-artifact@v4
6362
if: always()
6463
with:
65-
name: build-logs
64+
name: build-artifacts
6665
path: build
6766
retention-days: 7
6867
compression-level: 6 # Default compression level for a good balance of speed and size

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.*.*"
7+
8+
jobs:
9+
build:
10+
uses: ./.github/workflows/build-guidelines.yml
11+
12+
deploy:
13+
needs: build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Download build artifacts
20+
uses: actions/download-artifact@v4
21+
with:
22+
name: build-artifacts
23+
path: build
24+
25+
- name: Check artifacts
26+
run: |
27+
ls build
28+
ls build/html
29+
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v4
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./build/html
35+

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Nightly Safety-Critical Rust Coding Guidelines Build Schedule
1+
name: Nightly
22

33
on:
44
schedule:

src/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Safety-Critical Rust Coding Guidelines documentation
7-
====================================================
6+
Safety-Critical Rust Coding Guidelines
7+
======================================
88

99
.. toctree::
1010
:maxdepth: 2

0 commit comments

Comments
 (0)