Skip to content

Add github actions for deploying the website #7

Add github actions for deploying the website

Add github actions for deploying the website #7

Workflow file for this run

name: Publish
on:
push:
branches: [source]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run
# in-progress and latest queued. However, do NOT cancel in-progress runs as we
# want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
publish:
name: Publish website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m venv ./.venv
source ./.venv/bin/activate
pip install -U pip poetry
poetry install
poetry lock --check
- name: Build
run: |
./.venv/bin/mkdocs build
- uses: actions/upload-pages-artifact@v3
with:
path: "site"
- uses: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

Check failure on line 41 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 41, Col: 9): 'uses' is already defined