Skip to content

Merge pull request #3 from lftraining/feature/howto-create-incrementa… #8

Merge pull request #3 from lftraining/feature/howto-create-incrementa…

Merge pull request #3 from lftraining/feature/howto-create-incrementa… #8

Workflow file for this run

name: Publish MkDocs to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: virtualenv cache
uses: actions/cache@v4
with:
path: |
.venv
key: venv-${{ hashFiles('./poetry.lock') }}
- name: Install devbox
uses: jetpack-io/[email protected]
with:
enable-cache: "true"
- uses: actions/configure-pages@v5
- name: Setup Python environment
run: |
devbox run -- poetry install
- name: Build site
run: devbox run -- poetry run mkdocs build
- name: Upload site
uses: actions/upload-pages-artifact@v3
with:
path: ./site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4