Skip to content

update gh-pages deployment #2

update gh-pages deployment

update gh-pages deployment #2

Workflow file for this run

name: website
# build the documentation whenever there are new commits on main
on:
push:
branches:
- dev
# Alternative: only build for tags.
# tags:
# - '*'
# security: restrict permissions for CI jobs.
permissions:
contents: read
jobs:
# Build the documentation and upload the static HTML files as an artifact.
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yaml
cache-environment: true
post-cleanup: 'all'
- run: pip install -e .
shell: bash -el {0}
- run: |
pdoc -o docs/docs/ syma '!syma.monitoring'
pandoc --standalone -o docs/index.html --metadata title="Symbolic Automata Monitors" README.md
shell: bash -el {0}
- uses: actions/upload-pages-artifact@v2
with:
path: docs/
# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/
keep_files: true