File tree Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Expand file tree Collapse file tree 1 file changed +20
-13
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Expo Web (Staging)
1+ # .github/workflows/deploy-staging.yml
2+
3+ name : Deploy Client (Staging)
24
35on :
46 push :
5- branches : [ main ]
7+ branches :
8+ - main
9+
10+ permissions :
11+ contents : read
612
713jobs :
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 }}
You can’t perform that action at this time.
0 commit comments