Skip to content

Commit

Permalink
Perform pypi release on github release (#1298)
Browse files Browse the repository at this point in the history
* Remove testpypi uplodas
  • Loading branch information
rytilahti authored Jan 14, 2022
1 parent 9bc6b65 commit d09f8a4
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Publish packages
on:
push:
branches:
- master
release:
types: [published]

jobs:
build-n-publish:
Expand Down Expand Up @@ -32,15 +31,7 @@ jobs:
--outdir dist/
.
- name: Publish on test pypi
uses: pypa/gh-action-pypi-publish@master
continue-on-error: true
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish release on pypi
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit d09f8a4

Please sign in to comment.