Mark Joshwel
3f6327a134
Some checks failed
continuous deployment: surplus Documentation / publish surplus Documentation (push) Has been cancelled
continuous deployment: Telegram Bridge / build (push) Has been cancelled
continuous deployment: WhatsApp Bridge / build (push) Has been cancelled
continuous integration: s+ow / check (push) Has been cancelled
continuous integration: Telegram Bridge / check (push) Has been cancelled
continuous integration: WhatsApp Bridge / check (push) Has been cancelled
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: "continuous deployment: surplus Documentation"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- "docs/**"
|
|
- "mkdocs.yml"
|
|
- "src/spow-telegram-bridge/*.py"
|
|
- "src/**/*LICENCE*"
|
|
- "docs/**/*LICENCE*"
|
|
- "docs/**/*LICENSE*"
|
|
- "docs/CC0"
|
|
- "*LICENCE*"
|
|
- "src/surplus-on-wheels/s+ow"
|
|
- "src/surplus-on-wheels/install.sh"
|
|
- "src/spow-whatsapp-bridge/install.sh"
|
|
- "src/spow-telegram-bridge/install.sh"
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
deployments: write
|
|
name: publish surplus Documentation
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- run: nix develop --impure --command hatch run docs:build
|
|
|
|
- uses: cloudflare/pages-action@v1
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
projectName: surplus
|
|
directory: site
|
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|