Skip to content

Commit

Permalink
docs(book): Add publish job (#890)
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Wagner <[email protected]>
  • Loading branch information
nwagner84 authored Dec 12, 2024
1 parent 5ed0aa2 commit f7d5751
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,12 @@ jobs:
command: check ${{ matrix.checks }}
rust-version: stable

ci:
publish:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
needs:
- clippy
- deny
Expand All @@ -159,5 +163,22 @@ jobs:
- rustfmt
- test
- udeps
steps:
- uses: actions/checkout@v4
- uses: quarto-dev/quarto-actions/setup@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tinytex: true
- uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: docs/book
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ci:
runs-on: ubuntu-latest
needs: publish
steps:
- run: exit 0

0 comments on commit f7d5751

Please sign in to comment.