Skip to content

Commit

Permalink
Update publish-release-to-pypi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
menckend authored Oct 23, 2024
1 parent 09a81cd commit fb95b72
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish-release-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish Release package to Pypi.org

on:
release:
types: [published]
branches: ['main']
push:
branches:
- main
jobs:
build:
if: startsWith(github.ref, 'refs/tags/')
environment:
name: pypi
url: https://pypi.org/p/dcnodatg # Replace <package-name> with your PyPI project name
Expand All @@ -31,6 +32,7 @@ jobs:
name: python-package-distributions
path: dist/
publish-to-pypi:
if: startsWith(github.ref, 'refs/tags/')
name: >-
Publish Python distribution to PyPI
needs:
Expand All @@ -50,6 +52,7 @@ jobs:
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
github-release:
if: startsWith(github.ref, 'refs/tags/')
environment:
name: pypi
url: https://pypi.org/p/dcnodatg # Replace <package-name> with your PyPI project name
Expand Down

0 comments on commit fb95b72

Please sign in to comment.