Skip to content

Commit 7d0991e

Browse files
committed
build: gh pages deploy with gh actions
1 parent 7b9d46b commit 7d0991e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/static.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: gh-pages-deploy
2+
run-name: FancyWeb GH Pages deploy
3+
on:
4+
push:
5+
branches:
6+
- 'deploy'
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: '22.18'
15+
- name: Enable and set up Yarn
16+
run: |
17+
corepack enable
18+
yarn set version 4.9.2
19+
- name: Install packages and build
20+
run: |
21+
yarn install --check-cache
22+
yarn run build-main
23+
- name: Get production artifact
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: production-build
27+
path: dist

0 commit comments

Comments
 (0)