Add github actions for deploying the website #3
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
name: Publish | ||
on: | ||
push: | ||
branches: [source] | ||
jobs: | ||
publish: | ||
name: Publish website | ||
on: ubuntu-latest | ||
Check failure on line 9 in .github/workflows/publish.yml GitHub Actions / PublishInvalid workflow file
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: Install dependencies | ||
run: | | ||
pip install -U pip poetry | ||
poetry install | ||
- name: Build | ||
run: mkdocs build | ||
- name: Publish | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: "site" |