File tree Expand file tree Collapse file tree 1 file changed +25
-8
lines changed
Expand file tree Collapse file tree 1 file changed +25
-8
lines changed Original file line number Diff line number Diff line change 1- name : Fly Deploy Frontend
1+ name : Deploy Frontend
22
33on :
44 push :
55 branches :
66 - master
77
8- env :
9- FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
10-
118jobs :
129 deploy :
1310 name : Deploy frontend
14- runs-on : ubuntu -latest
11+ runs-on : macos -latest
1512 steps :
1613 - name : Cancel previous runs
17141815 with :
1916 workflow_id : 42688838
2017 access_token : ${{ github.token }}
21- - uses : actions/checkout@v3
22- - uses : superfly/flyctl-actions/setup-flyctl@master
23- - run : flyctl deploy --remote-only --config frontend.fly.toml
18+
19+ - uses : actions/checkout@v4
20+
21+ - name : Cache ~/.npm for npm ci
22+ uses : actions/cache@v4
23+ with :
24+ path : ~/.npm
25+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+ restore-keys : ${{ runner.os }}-node
27+
28+ -
uses :
AmyrAhmady/[email protected] 29+
30+ - name : Build frontend
31+ run : |
32+ cd frontend
33+ npm i
34+ npm run build
35+
36+ - name : Deploy 🚀
37+ uses : JamesIves/github-pages-deploy-action@v4
38+ with :
39+ folder : frontend/build
40+ single-commit : true
You can’t perform that action at this time.
0 commit comments