Skip to content

Commit e279e0e

Browse files
authored
Update deploy-staging.yml
1 parent 00b304c commit e279e0e

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed
Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
1-
name: Deploy Expo Web (Staging)
1+
# .github/workflows/deploy-staging.yml
2+
3+
name: Deploy Client (Staging)
24

35
on:
46
push:
5-
branches: [ main ]
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read
612

713
jobs:
814
build-and-deploy:
915
runs-on: ubuntu-latest
16+
1017
steps:
11-
- uses: actions/checkout@v4
18+
- name: Checkout code
19+
uses: actions/checkout@v4
1220

13-
- uses: actions/setup-node@v4
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
1423
with:
15-
node-version: '16'
16-
17-
- name: Install dependencies
18-
working-directory: a.eyes
19-
run: npm ci
24+
node-version: '18'
2025

21-
- name: Export Web
22-
working-directory: a.eyes
23-
run: npx expo export --platform web --output-dir dist-web
26+
- name: Install & build React client
27+
working-directory: client
28+
run: |
29+
npm ci
30+
npm run build
2431
2532
- name: Deploy to GitHub Pages (staging)
2633
uses: JamesIves/github-pages-deploy-action@v4
2734
with:
2835
branch: gh-pages-staging
29-
folder: a.eyes/dist-web
36+
folder: client/build
3037
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)