Skip to content

Commit 637c9e9

Browse files
authored
Add pypi-prod env for publish workflow (#663)
Added `pypi-prod` environment in https://github.com/argoproj-labs/hera/settings/environments --------- Signed-off-by: Elliot Gunton <[email protected]>
1 parent 0f9cda6 commit 637c9e9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/minimal-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: mheap/github-action-required-labels@v2
1616
with:
1717
count: 1
18-
labels: semver:major, semver:minor, semver:patch
18+
labels: semver:major, semver:minor, semver:patch, type:skip-changelog
1919
mode: exactly
2020
type:
2121
name: Minimal Type Labels

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
---
22
name: PyPI publish
33
# Publish once a maintainer clicks publish on a draft release
4+
# and approves the GitHub actions job
45
on:
56
release:
67
types: [released]
78
jobs:
89
build:
910
runs-on: ubuntu-latest
11+
environment: pypi-prod
1012
steps:
1113
- uses: actions/checkout@v3
1214
- name: Set up Python 3.8

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Release drafter automatically creates draft releases that are visible to maintai
66

77
## Versioning
88

9-
Each pull-request must be labeled with one of the following labels -
9+
Each pull-request must be labeled with one of the following labels (unless type:skip-changelog is used) -
1010

1111
- semver:major
1212
- semver:minor

0 commit comments

Comments
 (0)