fix release pipeline

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
Gaetan Semet 2021-09-22 11:01:51 +02:00
parent ffef36b42b
commit 002ba9f95c
2 changed files with 21 additions and 6 deletions

View File

@ -61,9 +61,26 @@ jobs:
# prepare for deployment
make generate-paths
- name: Stores dists (Python 3.8)
uses: actions/upload-artifact@v2
if: "${{ matrix.python-version }} == 3.8"
with:
name: dists
path: dist/*
release-test:
runs-on: ubuntu-latest
needs:
- build
if: github.ref == 'refs/heads/master'
steps:
- name: Retrieve dists
uses: actions/download-artifact@v2
with:
name: dists
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
if: github.ref == 'refs/heads/master'
with:
verify_metadata: false
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

View File

@ -13,9 +13,6 @@ jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
@ -24,10 +21,10 @@ jobs:
id: tag
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: 3.8
- name: Checkout the current branch
run: |
@ -67,6 +64,7 @@ jobs:
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
verify_metadata: false
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/