Skip to content

feat: Switch to PEP621 compliant pyproject.toml and pyproject.nix #108

feat: Switch to PEP621 compliant pyproject.toml and pyproject.nix

feat: Switch to PEP621 compliant pyproject.toml and pyproject.nix #108

Workflow file for this run

name: Build & deploy guide
on:
push:
paths:
- 'guide/**'
- '.github/workflows/guide.yml'
pull_request:
workflow_dispatch:
jobs:
deploy:
name: Build & deploy guide
runs-on: ubuntu-latest
defaults:
run:
working-directory: guide
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build
run: nix develop -c mkdocs build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './guide/site'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1