mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 05:04:38 +03:00
Actions: Fix publish pypi
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
6
.github/workflows/publish-to-pypi.yml
vendored
6
.github/workflows/publish-to-pypi.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
fetch-depth: 50
|
fetch-depth: 50
|
||||||
- name: Fetch release tag
|
- name: Fetch release tag
|
||||||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||||
- name: Set up Python 3.7🐍
|
- name: Set up Python 3.9🐍
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
@@ -32,12 +32,12 @@ jobs:
|
|||||||
run: python -m twine check dist/*
|
run: python -m twine check dist/*
|
||||||
- name: Publish distribution 📦 to Test PyPI when releases branch
|
- name: Publish distribution 📦 to Test PyPI when releases branch
|
||||||
if: ${{ startsWith(github.event.ref, 'refs/heads/releases') }}
|
if: ${{ startsWith(github.event.ref, 'refs/heads/releases') }}
|
||||||
uses: pypa/gh-action-pypi-publish@@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.testpypi_password }}
|
password: ${{ secrets.testpypi_password }}
|
||||||
repository_url: https://test.pypi.org/legacy/
|
repository_url: https://test.pypi.org/legacy/
|
||||||
- name: Publish distribution 📦 to PyPI
|
- name: Publish distribution 📦 to PyPI
|
||||||
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
|
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
|
||||||
uses: pypa/gh-action-pypi-publish@@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.pypi_password }}
|
password: ${{ secrets.pypi_password }}
|
||||||
|
|||||||
Reference in New Issue
Block a user