mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-04-26 08:36:22 +00:00
Publish to pypi on github release published (#287)
* Publish to pypi on github release published, remove testpypi * Remove release tag check
This commit is contained in:
parent
6ece506a3b
commit
255c0c9a25
13
.github/workflows/publish.yml
vendored
13
.github/workflows/publish.yml
vendored
@ -1,8 +1,7 @@
|
|||||||
name: Publish packages
|
name: Publish packages
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
branches:
|
types: [published]
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-n-publish:
|
build-n-publish:
|
||||||
@ -30,15 +29,7 @@ jobs:
|
|||||||
--wheel
|
--wheel
|
||||||
--outdir dist/
|
--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
|
- name: Publish release on pypi
|
||||||
if: startsWith(github.ref, 'refs/tags')
|
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user