Skip to content

Commit b1b347c

Browse files
committed
ci: specify a release environment (anthropics#191)
1 parent 4cb6fb7 commit b1b347c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/create-releases.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
name: release
1010
if: github.ref == 'refs/heads/main' && github.repository == 'anthropics/anthropic-sdk-python'
1111
runs-on: ubuntu-latest
12+
environment: production-release
1213

1314
steps:
1415
- uses: actions/checkout@v3

.github/workflows/release-doctor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Release Doctor
22
on:
3-
pull_request:
3+
push:
4+
branches:
5+
- main
46
workflow_dispatch:
57

68
jobs:
79
release_doctor:
810
name: release doctor
911
runs-on: ubuntu-latest
12+
environment: production-release
1013
if: github.repository == 'anthropics/anthropic-sdk-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1114

1215
steps:

0 commit comments

Comments
 (0)