Skip to content

Commit

Permalink
fix release pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Gaetan Semet <[email protected]>
  • Loading branch information
gsemet committed Sep 22, 2021
1 parent ffef36b commit 002ba9f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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/

Expand Down

0 comments on commit 002ba9f

Please sign in to comment.