diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c56c1d9..215a2f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,5 @@ name: main on: - workflow_dispatch: - pull_request: push: tags: - '[0-9].[0-9].[0-9]' @@ -34,3 +32,31 @@ jobs: with: path: ./wheelhouse/*.whl + release: + name: Create Release + needs: [build_wheels] + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - uses: actions/download-artifact@v3 + with: + name: artifact + path: dist + + - name: Show dist contents + run: ls dist + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: dist/* + + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} + diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 072c9fd..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Create Release - -on: - push: - tags: - - '[0-9].[0-9].[0-9]' - -jobs: - release: - name: Create Release - needs: [build_wheels] - runs-on: ubuntu-latest - - steps: - - uses: actions/setup-python@v4 - with: - python-version: "3.x" - - - uses: actions/download-artifact@v3 - with: - name: artifact - path: dist - - - name: Show dist contents - run: ls dist - - - name: Release - uses: softprops/action-gh-release@v1 - with: - files: | - dist/* - - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} -