Skip to content

Commit 28421e6

Browse files
committed
implement 11.11 Automatic deployments
1 parent f51a2d8 commit 28421e6

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/fly-deploy.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
2+
3+
name: Fly Deploy
4+
on:
5+
push:
6+
branches:
7+
- main
8+
jobs:
9+
deploy:
10+
name: Deploy app
11+
runs-on: ubuntu-latest
12+
concurrency: deploy-group # optional: ensure only one action runs at a time
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: superfly/flyctl-actions/setup-flyctl@master
16+
- run: npm run build
17+
- run: flyctl deploy --remote-only
18+
env:
19+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const app = express()
55
const PORT = process.env.PORT || 5001
66

77
app.get('/version', (req, res) => {
8-
res.send('1')
8+
res.send('2')
99
})
1010

1111
app.use(express.static('dist'))

0 commit comments

Comments
 (0)