Skip to content

Commit 8d15d39

Browse files
Use staging environment in cli-release-staging workflow jobs
1 parent a31ede0 commit 8d15d39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/cli-release-staging.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ permissions:
1414
contents: write
1515

1616
jobs:
17+
1718
prepare-and-commit-staging:
1819
runs-on: ubuntu-latest
20+
environment: staging
1921
if: |
2022
(github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[codecane]')) ||
2123
(github.event_name == 'push' && contains(github.event.head_commit.message, '[codecane]'))
@@ -118,6 +120,7 @@ jobs:
118120

119121
build-staging-binaries:
120122
needs: prepare-and-commit-staging
123+
en vironment: staging
121124
uses: ./.github/workflows/cli-release-build.yml
122125
with:
123126
binary-name: codecane
@@ -130,6 +133,7 @@ jobs:
130133
create-staging-release:
131134
needs: [prepare-and-commit-staging, build-staging-binaries]
132135
runs-on: ubuntu-latest
136+
environment: staging
133137
steps:
134138
- uses: actions/checkout@v4
135139
with:
@@ -207,6 +211,7 @@ jobs:
207211
create-staging-release,
208212
]
209213
runs-on: ubuntu-latest
214+
environment: staging
210215
permissions:
211216
contents: read
212217
id-token: write

0 commit comments

Comments
 (0)