Skip to content

Commit 4dac659

Browse files
committed
fix: action
1 parent ff703bc commit 4dac659

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on:
44
push:
55
branches:
66
- main
7-
# Review gh actions docs if you want to further define triggers, paths, etc
8-
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
7+
8+
concurrency:
9+
group: pages
10+
cancel-in-progress: true
911

1012
jobs:
1113
build:
@@ -15,12 +17,24 @@ jobs:
1517
- uses: actions/checkout@v4
1618
with:
1719
fetch-depth: 0
20+
1821
- uses: oven-sh/setup-bun@v2
1922
with:
2023
bun-version: latest
2124

25+
- name: Cache Bun dependencies
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.bun/install/cache
30+
node_modules
31+
key: ${{ runner.os }}-bun-${{ hashFiles('**/package.json', '**/bun.lockb') }}
32+
restore-keys: |
33+
${{ runner.os }}-bun-
34+
2235
- name: Install dependencies
2336
run: bun install --frozen-lockfile
37+
2438
- name: Build website
2539
run: bun run build
2640

@@ -33,12 +47,10 @@ jobs:
3347
name: Deploy to GitHub Pages
3448
needs: build
3549

36-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
3750
permissions:
38-
pages: write # to deploy to Pages
39-
id-token: write # to verify the deployment originates from an appropriate source
51+
pages: write
52+
id-token: write
4053

41-
# Deploy to the github-pages environment
4254
environment:
4355
name: github-pages
4456
url: ${{ steps.deployment.outputs.page_url }}
@@ -47,4 +59,4 @@ jobs:
4759
steps:
4860
- name: Deploy to GitHub Pages
4961
id: deployment
50-
uses: actions/deploy-pages@v4
62+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)