mirror of
https://github.com/moepman/acertmgr.git
synced 2024-12-28 05:01:49 +01:00
GitHub Actions: twine upload via pypa/gh-action-pypi-publish
This commit is contained in:
parent
b48f4532b9
commit
62f01aeff9
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -85,11 +85,8 @@ jobs:
|
||||
artifacts/*.deb
|
||||
|
||||
- name: Create new PyPI release
|
||||
env:
|
||||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
||||
if: "startsWith(github.ref, 'refs/tags/') && (!(contains(github.ref, 'rc') || contains(github.ref, 'pre')))"
|
||||
run: |
|
||||
if [ "$TWINE_USERNAME" != '' -a "$TWINE_PASSWORD" != '' ]; then
|
||||
twine upload dist/*
|
||||
fi
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && (!(contains(github.ref, 'rc') || contains(github.ref, 'pre')))
|
||||
uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
user: ${{ secrets.PYPI_USERNAME }}
|
||||
password: ${{ secrets.PYPI_PASSWORD }}
|
||||
|
Loading…
Reference in New Issue
Block a user