File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,25 +2,28 @@ name: build
22
33on :
44 push :
5+ branches : [main, astro-migration]
56 pull_request :
6- repository_dispatch :
7- types : [ 'interscript/interscript' ]
7+ workflow_dispatch :
88
99jobs :
1010 build :
11- name : Build
1211 runs-on : ubuntu-latest
1312 steps :
1413 - uses : actions/checkout@v7
1514 - name : Use Node
1615 uses : actions/setup-node@v7
1716 with :
18- node-version : ' 18 '
19- cache : yarn
20- - name : Install NPM dependencies
21- run : |
22- yarn install --frozen-lockfile
23- yarn global add asciidoctor@^2.2.4
17+ node-version : " 22 "
18+ cache : npm
19+ - name : Install dependencies
20+ run : npm ci
21+ - name : Type check
22+ run : npm run check
2423 - name : Build site
25- run : |
26- yarn adoc make
24+ run : npm run build
25+ - name : Upload artifact
26+ uses : actions/upload-artifact@v4
27+ with :
28+ name : site
29+ path : dist
Original file line number Diff line number Diff line change @@ -3,21 +3,14 @@ name: deploy
33on :
44 push :
55 branches :
6- - main
7- # - staging
8- pull_request :
6+ - main
97 workflow_dispatch :
10- repository_dispatch :
11- types : [ 'interscript/interscript' ]
128
13- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
149permissions :
1510 contents : read
1611 pages : write
1712 id-token : write
1813
19- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2114concurrency :
2215 group : ${{ github.workflow }}-${{ github.ref }}
2316 cancel-in-progress : false
@@ -34,21 +27,17 @@ jobs:
3427 - name : Use Node
3528 uses : actions/setup-node@v7
3629 with :
37- node-version : ' 18'
38- cache : yarn
39- - name : Install NPM dependencies
40- run : |
41- yarn install --frozen-lockfile
42- yarn global add asciidoctor@^2.2.4
30+ node-version : " 22"
31+ cache : npm
32+ - name : Install dependencies
33+ run : npm ci
4334 - name : Build site
44- run : |
45- yarn adoc make
35+ run : npm run build
4636 - name : Upload artifact
47- uses : actions/upload-pages-artifact@v5
37+ uses : actions/upload-pages-artifact@v3
4838 with :
4939 path : dist
5040
51- # Deployment job
5241 deploy :
5342 environment :
5443 name : github-pages
5948 steps :
6049 - name : Deploy to GitHub Pages
6150 id : deployment
62- uses : actions/deploy-pages@v5
51+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments