fixed kvs sample #699
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is autogenerated by maturin v0.15.1 | |
# To update, run | |
# | |
# maturin generate-ci github | |
# | |
name: Savant-RS Docs | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- '*' | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
# if: "startsWith(github.ref, 'refs/tags/')" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: sudo sh -e install_deps.sh | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Build Docs | |
run: | | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(dirname $(dirname $(rustup which cargo)))/lib | |
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" | |
make docs | |
tar \ | |
--dereference --hard-dereference \ | |
--directory docs/build/html -cvf artifact.tar . | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: github-pages | |
path: artifact.tar | |
if-no-files-found: error | |
deploy-docs: | |
# if: "startsWith(github.ref, 'refs/tags/')" | |
runs-on: ubuntu-latest | |
needs: build-docs | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |