Skip to content

Commit 28ffe63

Browse files
committed
remove flyio frontend, build on m1 runner, caching, gh pages!
1 parent 9e314f4 commit 28ffe63

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/deploy-web.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,40 @@
1-
name: Fly Deploy Frontend
1+
name: Deploy Frontend
22

33
on:
44
push:
55
branches:
66
- master
77

8-
env:
9-
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
10-
118
jobs:
129
deploy:
1310
name: Deploy frontend
14-
runs-on: ubuntu-latest
11+
runs-on: macos-latest
1512
steps:
1613
- name: Cancel previous runs
1714
uses: styfle/[email protected]
1815
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

0 commit comments

Comments
 (0)