diff --git a/.github/workflows/python.yml b/.github/workflows/python_build.yml similarity index 79% rename from .github/workflows/python.yml rename to .github/workflows/python_build.yml index 7561c0d..ecac8e0 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python_build.yml @@ -5,14 +5,7 @@ # name: CI -on: - push: - branches: - - gh-actions - tags: - - '*' - pull_request: - workflow_dispatch: +on: [push, pull_request, workflow_dispatch] permissions: contents: read @@ -100,20 +93,3 @@ jobs: with: name: wheels path: dist - - #release: - # name: Release - # runs-on: ubuntu-latest - # if: "startsWith(github.ref, 'refs/tags/')" - # needs: [linux, windows, macos, sdist] - # steps: - # - uses: actions/download-artifact@v3 - # with: - # name: wheels - # - name: Publish to PyPI - # uses: PyO3/maturin-action@v1 - # env: - # MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} - # with: - # command: upload - # args: --non-interactive --skip-existing * diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..98f8bbf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +# This file is autogenerated by maturin v1.4.0 +# To update, run +# +# maturin generate-ci github --zig +# +name: CI + +on: + push: + tags: + - '*' + +permissions: + contents: read + + release: + name: Release + runs-on: ubuntu-latest + if: "startsWith(github.ref, 'refs/tags/')" + needs: [linux, windows, macos, sdist] + steps: + - uses: actions/download-artifact@v3 + with: + name: wheels + - name: Publish to PyPI + uses: PyO3/maturin-action@v1 + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + with: + command: upload + args: --non-interactive --skip-existing *