Skip to content

Commit c627182

Browse files
committed
ci: v2 workflows — Astro build + Pages deploy (cutover)
build.yml and deploy.yml still built the v1 site (yarn + asciidoctor); both now npm ci + astro build on Node 22. deploy triggers on main only.
1 parent 63304ef commit c627182

2 files changed

Lines changed: 22 additions & 30 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,28 @@ name: build
22

33
on:
44
push:
5+
branches: [main, astro-migration]
56
pull_request:
6-
repository_dispatch:
7-
types: [ 'interscript/interscript' ]
7+
workflow_dispatch:
88

99
jobs:
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

.github/workflows/deploy.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,14 @@ name: deploy
33
on:
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
149
permissions:
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.
2114
concurrency:
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
@@ -59,4 +48,4 @@ jobs:
5948
steps:
6049
- name: Deploy to GitHub Pages
6150
id: deployment
62-
uses: actions/deploy-pages@v5
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)