File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313permissions :
14- contents : read
15- pages : write
16- id-token : write
14+ contents : write
1715
1816# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1917# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2523 NODE_VERSION : " 22"
2624
2725jobs :
28- # Build job
29- build :
26+ build-deploy :
3027 runs-on : ubuntu-latest
3128 steps :
3229 - name : Checkout
3330 uses : actions/checkout@v4
34-
31+
3532 - name : Setup Node.js
3633 uses : actions/setup-node@v4
3734 with :
3835 node-version : ${{ env.NODE_VERSION }}
3936 cache : ' npm'
40-
37+
4138 - name : Cache Eleventy incremental build state
4239 uses : actions/cache@v4
4340 with :
@@ -61,29 +58,15 @@ jobs:
6158 key : css-build-${{ runner.os }}-${{ hashFiles('postcss.config.js') }}-${{ github.sha }}
6259 restore-keys : |
6360 css-build-${{ runner.os }}-${{ hashFiles('postcss.config.js') }}-
64-
61+
6562 - name : Install dependencies
6663 run : npm ci
67-
64+
6865 - name : Build site
6966 run : npm run build
70-
71- - name : Setup Pages
72- uses : actions/configure-pages@v5
73-
74- - name : Upload artifact
75- uses : actions/upload-pages-artifact@v4
76- with :
77- path : ./dist
7867
79- # Deployment job
80- deploy :
81- environment :
82- name : github-pages
83- url : ${{ steps.deployment.outputs.page_url }}
84- runs-on : ubuntu-latest
85- needs : build
86- steps :
8768 - name : Deploy to GitHub Pages
88- id : deployment
89- uses : actions/deploy-pages@v4
69+ uses : peaceiris/actions-gh-pages@v4
70+ with :
71+ github_token : ${{ secrets.GITHUB_TOKEN }}
72+ publish_dir : ./dist
You can’t perform that action at this time.
0 commit comments