Skip to content

Commit 0d80280

Browse files
committed
fix deploy: use actual token for staging env, and rename them because they had same name
1 parent a222939 commit 0d80280

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ on:
55
- release
66

77
env:
8-
FLY_TOKEN: ${{ secrets.FLY_ACCESS_TOKEN }}
8+
FLY_PROD_TOKEN: ${{ secrets.FLY_ACCESS_TOKEN }}
99
jobs:
1010
deploy:
11+
name: Production
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v4
1415
- uses: superfly/flyctl-actions/setup-flyctl@master
15-
- run: flyctl deploy --access-token "$FLY_TOKEN" --config ./fly/prod.toml
16+
- run: flyctl deploy --access-token "$FLY_PROD_TOKEN" --config ./fly/prod.toml

.github/workflows/staging.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ on:
55
- main
66

77
env:
8-
FLY_TOKEN: ${{ secrets.FLY_ACCESS_TOKEN }}
8+
FLY_STAGING_TOKEN: ${{ secrets.FLY_STAGING_TOKEN }}
99
jobs:
1010
deploy:
11+
name: Staging
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v4
1415
- uses: superfly/flyctl-actions/setup-flyctl@master
15-
- run: flyctl deploy --access-token "$FLY_TOKEN" --config ./fly/staging.toml
16+
- run: flyctl deploy --access-token "$FLY_STAGING_TOKEN" --config ./fly/staging.toml

0 commit comments

Comments
 (0)