File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1012jobs :
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 }}
4759 steps :
4860 - name : Deploy to GitHub Pages
4961 id : deployment
50- uses : actions/deploy-pages@v4
62+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments