Skip to content

Commit

Permalink
Simplify release and test on Test PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
m-clare committed Jun 9, 2024
1 parent 29d7f6e commit 037a1f2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish

on:
release:
types: [published]
push:
branches:
- main

jobs:
release:
Expand All @@ -27,8 +28,9 @@ jobs:
run: |
poetry build --ansi
- name: Publish to PyPI
- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy

0 comments on commit 037a1f2

Please sign in to comment.