Skip to content

Commit

Permalink
fix: update release
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Feb 4, 2024
1 parent c144007 commit 6600fe4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,16 @@ jobs:
run: |
sed -i "s/^version[ ]*=.*/version = '${NEXT_VERSION}'/" pyproject.toml
- name: Publish
- name: Publish to TestPyPi
if: ${{ github.ref_name == 'alpha' }}
env:
TEST_PYPI_TOKEN: ${{ secrets.TEST_PYPI_TOKEN }}
run: |
poetry config pypi-token.testpypi $TEST_PYPI_TOKEN
poetry publish --build --skip-existing -r testpypi
- name: Publish to PyPi
if: ${{ github.ref_name == 'main' }}
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
Expand Down

0 comments on commit 6600fe4

Please sign in to comment.