Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

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 a68e1dc commit c923a02
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/publish-release-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Publish Release package to Pypi.org

on:
push:
release:
branches:
- main
jobs:
build:
if: startsWith(github.event.ref, 'refs/tags/test')
#if: ${{ startsWith(github.ref, 'refs/tags/') }} # only publish to test.pypi.org on tagged commits from test branch
environment:
name: pypi
url: https://pypi.org/p/dcnodatg # Replace <package-name> with your PyPI project name
Expand All @@ -33,8 +31,6 @@ jobs:
name: python-package-distributions
path: dist/
publish-to-pypi:
if: startsWith(github.event.ref, 'refs/tags/test')
#if: ${{ startsWith(github.ref, 'refs/tags/') }} # only publish to test.pypi.org on tagged commits from test branch
name: >-
Publish Python distribution to PyPI
needs:
Expand All @@ -54,8 +50,6 @@ jobs:
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
github-release:
if: startsWith(github.event.ref, 'refs/tags/test')
#if: ${{ startsWith(github.ref, 'refs/tags/') }} # only publish to test.pypi.org on tagged commits from test branch
environment:
name: pypi
url: https://pypi.org/p/dcnodatg # Replace <package-name> with your PyPI project name
Expand Down

0 comments on commit c923a02

Please sign in to comment.