Skip to content

Commit 47f7002

Browse files
committed
Add deploy to Github Pages workflow
1 parent 96ba6f6 commit 47f7002

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
push:
3+
branches: [main]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Fetch latest repository
10+
uses: actions/checkout@v4
11+
- name: Using Node 20
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: 20
15+
- name: Setup dependencies
16+
run: |
17+
NODE_ENV=production yarn
18+
cache: "yarn"
19+
- name: Build project
20+
run: |
21+
NODE_ENV=production yarn build
22+
- name: Upload production artifact
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: github-pages
26+
path: |
27+
dist
28+
- name: Publishing production artifact
29+
uses: actions/deploy-pages@v4
30+
with:
31+
artifact_name: github-pages

0 commit comments

Comments
 (0)