Skip to content

Commit 4ed8eeb

Browse files
committed
Fix: move fly deploy to 'push' event
1 parent 5fffde1 commit 4ed8eeb

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/push.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
DOCKER_REGISTRY_USER: ${{ github.actor }}
2727
DOCKER_REGISTRY_PASSWORD: ${{ secrets.GHCR_TOKEN }}
2828
run: npx semantic-release
29+
deploy:
30+
runs-on: ubuntu-latest
31+
if: startsWith(github.ref, 'refs/heads/')
32+
needs: release
33+
steps:
34+
- uses: actions/checkout@v4
2935
notify:
3036
runs-on: ubuntu-latest
3137
if: startsWith(github.ref, 'refs/tags/')
@@ -40,12 +46,3 @@ jobs:
4046
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
4147
with:
4248
args: "Version {{ TAG_NAME }} of {{ EVENT_PAYLOAD.repository.full_name }} has been released!"
43-
deploy:
44-
runs-on: ubuntu-latest
45-
if: startsWith(github.ref, 'refs/tags/')
46-
steps:
47-
- uses: actions/checkout@v4
48-
- uses: superfly/flyctl-actions/setup-flyctl@master
49-
- run: flyctl deploy --local-only
50-
env:
51-
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 commit comments

Comments
 (0)