fix #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fly Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy app | |
runs-on: ubuntu-latest | |
concurrency: deploy-group | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Inspect env | |
run: | | |
pwd | |
ls -al | |
git log -1 --format="%H %ct" | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only --build-arg GIT_COMMIT_INFO=$(git log -1 --format="%H %ct") | |
env: | |
# ref Github Settings -> Secrets -> Actions -> Repository secrets | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |