Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/build-guidelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Build Safety-Critical Rust Coding Guidelines
name: Build

on:
# Add on:
push:
tags:
- "*.*.*"
Expand Down Expand Up @@ -58,11 +57,11 @@ jobs:
exit 1
fi

- name: Archive build logs
- name: Archive build artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: build-logs
name: build-artifacts
path: build
retention-days: 7
compression-level: 6 # Default compression level for a good balance of speed and size
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/html

2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nightly Safety-Critical Rust Coding Guidelines Build Schedule
name: Nightly

on:
schedule:
Expand Down
4 changes: 2 additions & 2 deletions src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Safety-Critical Rust Coding Guidelines documentation
====================================================
Safety-Critical Rust Coding Guidelines
======================================

.. toctree::
:maxdepth: 2
Expand Down