-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.01 KB
/
deploy.yaml
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
name: Deploy the blog
on:
push:
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with: { token: "${{ secrets.GITHUB_TOKEN }}" }
# - uses: cachix/install-nix-action@v20
# with:
# install_url: https://releases.nixos.org/nix/nix-2.9.1/install
# extra_nix_config: |
# access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# experimental-features = nix-command flakes
# - run: nix build .#blog
- uses: actions/setup-node@v3
with:
node-version-file: ".tool-versions"
cache: "yarn"
cache-dependency-path: "yarn.lock"
- run: yarn install
- run: yarn build
- uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: blog-nobbz-dev
# directory: ./result
directory: ./public
gitHubToken: ${{ secrets.GITHUB_TOKEN }}