Skip to content

Commit

Permalink
Finish publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnz committed May 28, 2024
1 parent 758388e commit 689a6dd
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
publish-test:
runs-on: ubuntu-latest
needs: package
if: "!github.event.release.prerelease"
if: github.event.release.prerelease
environment:
name: testpypi
url: https://test.pypi.org/p/animatedledstrip-client
Expand All @@ -49,21 +49,21 @@ jobs:
with:
repository-url: https://test.pypi.org/legacy/

# publish:
# runs-on: ubuntu-latest
# needs: package
# if: "!github.event.release.prerelease"
# environment:
# name: pypi
# url: https://pypi.org/p/animatedledstrip-client
# permissions:
# id-token: write
# steps:
# - name: Download artifact
# uses: actions/[email protected]
# with:
# name: client-python-distributions
# path: dist/
#
# - name: Publish to PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
publish:
runs-on: ubuntu-latest
needs: package
if: "!github.event.release.prerelease"
environment:
name: pypi
url: https://pypi.org/p/animatedledstrip-client
permissions:
id-token: write
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: client-python-distributions
path: dist/

- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 689a6dd

Please sign in to comment.