Skip to content

Commit a54426a

Browse files
authored
ci: gate v1 releases behind the release environment (#58899)
1 parent b782d9d commit a54426a

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/publish-vscode.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ permissions:
1414
jobs:
1515
publish:
1616
runs-on: blacksmith-4vcpu-ubuntu-2404
17+
environment: release
1718
steps:
1819
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1920
with:

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
version:
4040
runs-on: blacksmith-4vcpu-ubuntu-2404
4141
if: github.repository == 'anomalyco/opencode'
42+
# Versioned releases wait for approval in the release environment.
43+
environment: ${{ (inputs.bump || inputs.version) && 'release' || '' }}
4244
steps:
4345
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4446
with:
@@ -496,6 +498,7 @@ jobs:
496498
- build-electron
497499
if: always() && !failure() && !cancelled()
498500
runs-on: blacksmith-4vcpu-ubuntu-2404
501+
environment: ${{ needs.version.outputs.release && 'release' || '' }}
499502
steps:
500503
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
501504

0 commit comments

Comments
 (0)