Skip to content

Commit

Permalink
feat: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxinyang committed Jun 19, 2024
1 parent 4aec2ee commit 1fd0b47
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/fly_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# For more details, see: https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Deploy to Fly.io
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to fly
id: deployment
run: |
flyctl deploy --remote-only | tail -n 1 >> $GITHUB_STEP_SUMMARY
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fly.toml app configuration file generated for wangxy on 2024-04-10T14:16:13+09:00
# fly.toml app configuration file generated for wangxy on 2024-06-19T16:18:41+09:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
Expand Down

0 comments on commit 1fd0b47

Please sign in to comment.