Skip to content

Commit 0ed012c

Browse files
authored
ci: restore deploy.yml environments (#59353)
1 parent 6996bbc commit 0ed012c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
1212

1313
permissions:
1414
contents: read
15+
id-token: write
1516

1617
jobs:
1718
deploy:
1819
if: github.repository == 'anomalyco/opencode' && (github.ref_name == 'dev' || github.ref_name == 'production' || github.ref_name == 'beta')
1920
runs-on: blacksmith-4vcpu-ubuntu-2404
20-
# production keeps its own environment so dev and beta pushes can never reach production credentials.
21-
environment: ${{ github.ref_name == 'production' && 'production' || 'release' }}
22-
permissions:
23-
contents: read
24-
id-token: write
21+
environment: ${{ github.ref_name }}
2522
steps:
2623
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2724

0 commit comments

Comments
 (0)