Skip to content

Commit

Permalink
better workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxenopoulos committed Apr 3, 2024
1 parent d3f4303 commit e213e21
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Build and Publish to Test PyPI
on: push

jobs:
release-build:
build-and-release:
runs-on: ubuntu-latest
permissions:
id-token: write
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand All @@ -22,25 +24,6 @@ jobs:
python -m pip install --upgrade pip build
python -m build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: test-release-dists-${{ matrix.python-version }}
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs: release-build
permissions:
id-token: write

steps:
- name: Retrieve test release distributions
uses: actions/download-artifact@v4
with:
name: test-release-dists-${{ matrix.python-version }}
path: dist/

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit e213e21

Please sign in to comment.