Skip to content

Commit

Permalink
f2
Browse files Browse the repository at this point in the history
  • Loading branch information
cao7113 committed Jun 29, 2024
1 parent 89aea5d commit eed4141
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ jobs:
run: |
pwd
ls -al
- uses: superfly/flyctl-actions/setup-flyctl@master

- run: |
export GIT_COMMIT_INFO="$(git log -1 --format='%H %ct')"
echo GIT_COMMIT_INFO="$GIT_COMMIT_INFO"
export GIT_COMMIT_INFO1=$(git log -1 --format="%H %ct")
echo GIT_COMMIT_INFO1="$GIT_COMMIT_INFO1"
- uses: superfly/flyctl-actions/setup-flyctl@master

- run: flyctl deploy --remote-only --env GIT_COMMIT_INFO="$GIT_COMMIT_INFO" --env GIT_COMMIT_INFO1="$GIT_COMMIT_INFO1"
flyctl deploy --remote-only --env GIT_COMMIT_INFO="$GIT_COMMIT_INFO" --env GIT_COMMIT_INFO1="$GIT_COMMIT_INFO1"
env:
# ref Github Settings -> Secrets -> Actions -> Repository secrets
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
GIT_COMMIT_INFO: ${{ GIT_COMMIT_INFO }}
GIT_COMMIT_INFO1: ${{ GIT_COMMIT_INFO1 }}

0 comments on commit eed4141

Please sign in to comment.