diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1620c62..cd541a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + - name: Install build + run: pip install build - name: Build distribution run: python -m build . - name: Upload artifacts @@ -48,9 +50,8 @@ jobs: shell: bash run: pytest --collect-only -q | grep ^test_ | while read testname; do pytest -q $testname; done pypi-publish-test: - name: Release on test.pypi.org + name: Release on Test PyPI needs: test - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest environment: name: Test PyPI @@ -65,7 +66,7 @@ jobs: with: repository-url: "https://test.pypi.org/legacy/" pypi-publish: - name: Upload release to PyPI + name: Release on PyPI needs: test if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest