Skip to content

Commit 3d4b114

Browse files
committed
ci(web): add staging env build
1 parent d3c54d0 commit 3d4b114

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/staging-web.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy staging web environment
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
paths:
8+
- 'packages/filen-web/**/**'
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: 'staging-web'
17+
cancel-in-progress: true
18+
19+
env:
20+
NODE_OPTIONS: --max-old-space-size=6144
21+
22+
jobs:
23+
staging-web:
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
- name: Set up Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 24
35+
- name: Install dependencies
36+
working-directory: packages/filen-web
37+
run: npm install --package-lock-only && npm ci
38+
env:
39+
NODE_OPTIONS: --max-old-space-size=6144
40+
- name: Build
41+
working-directory: packages/filen-web
42+
run: npm run build
43+
env:
44+
NODE_OPTIONS: --max-old-space-size=6144
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v4
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
working-directory: packages/filen-web
50+
with:
51+
path: './dist'
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)