-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1.13 KB
/
cd-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
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
branch: main
gitHubToken: ${{ secrets.GITHUB_TOKEN }}