Skip to content

Commit 781d94f

Browse files
authored
Separate build/publish job from release/tag job (#140)
Fixes #139. (ref: https://sjramblings.io/github-actions-resource-not-accessible-by-integration)
1 parent 54dfd98 commit 781d94f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ jobs:
3131
run: python -m build .
3232
- name: Publish
3333
uses: pypa/gh-action-pypi-publish@release/v1
34+
release:
35+
if: github.repository_owner == 'pypa'
36+
runs-on: ubuntu-latest
37+
steps:
3438
- name: Version
3539
id: version
3640
run: echo "::set-output name=version::$(python setup.py --version 2>/dev/null)"

0 commit comments

Comments
 (0)