Skip to content

chore: update deps and fix cargo-deny config #58

chore: update deps and fix cargo-deny config

chore: update deps and fix cargo-deny config #58

Workflow file for this run

name: docs
permissions:
contents: write
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node 23
uses: actions/setup-node@v4
with:
node-version: 23
- name: Build documentation
run: |
yarn install
yarn run docs:build
- name: Compress generated documentation assets
run: tar -C ./docs/.vitepress/dist -c -z -f docs.tar.gz .
- name: Upload compressed documentation assets
uses: actions/upload-artifact@v4
with:
name: documentation
path: docs.tar.gz
publish:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs:
- build
steps:
- uses: actions/download-artifact@v4
with:
name: documentation
path: .
- name: Create extract directory
run: mkdir -p /tmp/docs
- name: Uncompress generated documentation assets
run: tar -C /tmp/docs -x -z -f ./docs.tar.gz && rm ./docs.tar.gz
- name: Publish to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /tmp/docs
commit_message: ${{ github.event.head_commit.message }}
enable_jekyll: false
allow_empty_commit: false