diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 440804b..c06346a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,9 +75,6 @@ jobs: - os: windows target: aarch64 runs-on: ${{ (matrix.os == 'linux' && 'ubuntu') || matrix.os }}-latest - environment: test - permissions: - id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python @@ -106,6 +103,22 @@ jobs: with: name: wheel_${{ matrix.os }}_${{ matrix.target }}_${{ matrix.interpreter || 'all' }}_${{ matrix.manylinux }} path: dist + pypi: + if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' + environment: + name: pypi + url: https://test.pypi.org/p/evalica + permissions: + id-token: write + runs-on: ubuntu-latest + needs: build + steps: + - name: Download packages + uses: actions/download-artifact@v3 + with: + pattern: wheel_* + merge-multiple: true + path: dist - name: Publish to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: