Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 2ef6624

Browse files
committed
Add action to automatically publish the app to github pages
1 parent db76240 commit 2ef6624

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [production]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # Fetch all history for git describe --tags
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "18"
26+
cache: "yarn"
27+
28+
- name: Install dependencies
29+
run: yarn install --frozen-lockfile
30+
31+
- name: Generate version
32+
run: yarn generateVersion
33+
34+
- name: Build
35+
run: yarn build
36+
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v4
39+
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: "./dist"
44+
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)