-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 971 Bytes
/
site.yml
File metadata and controls
36 lines (30 loc) · 971 Bytes
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
name: Deploy Web Site
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- uses: actions/checkout@v3
- uses: nixbuild/nix-quick-install-action@v25
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: actions/cache@v3
with:
path: /home/runner/.cache/deno
key: ${{ hashFiles('deno.lock') }}
- uses: actions/cache@v3
with:
path: /home/runner/.cache/soupault
key: ${{ hashFiles('soupault.toml') }}
- run: nix develop .#CI-site --impure --command make
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: nusa
directory: result/site
gitHubToken: ${{ secrets.GITHUB_TOKEN }}