Skip to content

Commit

Permalink
Init v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhaopudark committed Jan 12, 2024
1 parent 1ac5557 commit f78bc48
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload Python Package

on:
release:
types: [prerelease]
types: [published]

jobs:
deploy:
Expand All @@ -17,8 +17,14 @@ jobs:
shell: pwsh
run: . ./helper/build.ps1
- name: Publish package (prerelease)
if: ${{github.event.release.prerelease}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

- name: Publish package (release)
if: ${{!github.event.release.prerelease}}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://upload.pypi.org/legacy/

0 comments on commit f78bc48

Please sign in to comment.