-
Notifications
You must be signed in to change notification settings - Fork 18
56 lines (44 loc) · 1.35 KB
/
Copy pathdeploy.yml
File metadata and controls
56 lines (44 loc) · 1.35 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Deploy
# Builds the Next.js static export in website/ and publishes it to the gh-pages
# branch, which is what javier.xyz/react-number-easing rewrites to via
# javierbyte.github.io/react-number-easing. Package publishing is handled by the
# separate publish workflow; this site keeps a manually updated, exact npm version.
on:
push:
branches: [main, master]
workflow_dispatch:
permissions:
contents: write
concurrency:
group: deploy
cancel-in-progress: true
defaults:
run:
working-directory: website
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
with:
package_json_file: website/package.json
- uses: actions/setup-node@v5
with:
node-version-file: website/.nvmrc
cache: pnpm
cache-dependency-path: |
pnpm-lock.yaml
website/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
working-directory: .
- run: pnpm build
working-directory: .
- run: pnpm install --frozen-lockfile
- run: pnpm build
- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/out
# Next writes assets to _next/, and Jekyll skips underscore paths.
enable_jekyll: false