Commit 28421e6 1 parent f51a2d8 commit 28421e6 Copy full SHA for 28421e6
File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const app = express()
5
5
const PORT = process . env . PORT || 5001
6
6
7
7
app . get ( '/version' , ( req , res ) => {
8
- res . send ( '1 ' )
8
+ res . send ( '2 ' )
9
9
} )
10
10
11
11
app . use ( express . static ( 'dist' ) )
You can’t perform that action at this time.
0 commit comments