File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,19 +12,24 @@ jobs:
1212 concurrency : ci-${{ github.ref }}
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v3
16- - uses : actions/setup-node@v3
15+ - uses : actions/checkout@v4
16+
17+ - name : Use Node.js
18+ uses : actions/setup-node@v4
1719 with :
18- node-version : 19
20+ node-version : 20
1921 cache : npm
2022
23+ - name : Install dependencies
24+ run : npm ci
25+
2126 - name : Build
22- run : |
23- npm ci
24- npm run build
25- touch out/.nojekyll
27+ run : npm run build --if-present
28+
29+ - name : Create .nojekyll
30+ run : touch out/.nojekyll
2631
27- - name : Deploy
28- uses : JamesIves/github-pages-deploy-action@v4.4.3
32+ - name : Deploy to GitHub Pages
33+ uses : JamesIves/github-pages-deploy-action@v4.7.2
2934 with :
3035 folder : out
Original file line number Diff line number Diff line change 1+ import * as childproc from "child_process" ;
2+
3+ const commitHash = childproc
4+ . execSync ( 'git log --pretty=format:"%h" -n1' )
5+ . toString ( )
6+ . trim ( ) ;
7+
18/** @type {import('next').NextConfig } */
29const nextConfig = {
310 output : "export" ,
11+ env : {
12+ COMMIT_HASH : commitHash ,
13+ } ,
414} ;
515
616export default nextConfig ;
You can’t perform that action at this time.
0 commit comments