diff --git a/.github/workflows/maturin.yml b/.github/workflows/maturin.yml index d49f42cb2..a8c19ef8d 100644 --- a/.github/workflows/maturin.yml +++ b/.github/workflows/maturin.yml @@ -10,7 +10,7 @@ on: tags: - "v*.*.*" - "!varcon*" - # pull_request: # Only enabled for testing + pull_request: # Only enabled for testing permissions: contents: read @@ -31,7 +31,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --manifest-path crates/typos-cli/Cargo.toml --release --out dist + args: --manifest-path crates/typos-cli/Cargo.toml --out dist sccache: 'true' manylinux: auto - name: Upload wheels @@ -55,7 +55,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --manifest-path crates/typos-cli/Cargo.toml --release --out dist + args: --manifest-path crates/typos-cli/Cargo.toml --out dist sccache: 'true' manylinux: musllinux_1_2 - name: Upload wheels @@ -79,7 +79,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --manifest-path crates/typos-cli/Cargo.toml --release --out dist + args: --manifest-path crates/typos-cli/Cargo.toml --out dist sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v4 @@ -102,7 +102,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --manifest-path crates/typos-cli/Cargo.toml --release --out dist + args: --manifest-path crates/typos-cli/Cargo.toml --out dist sccache: 'true' - name: Upload wheels uses: actions/upload-artifact@v4 @@ -125,19 +125,19 @@ jobs: name: wheels-sdist 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@v4 - with: - merge-multiple: true - - name: Publish to PyPI - uses: PyO3/maturin-action@v1 - env: - MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} - with: - command: upload - args: --skip-existing * + # release: + # name: Release + # runs-on: ubuntu-latest + # if: "startsWith(github.ref, 'refs/tags/')" + # needs: [linux, windows, macos, sdist] + # steps: + # - uses: actions/download-artifact@v4 + # with: + # merge-multiple: true + # - name: Publish to PyPI + # uses: PyO3/maturin-action@v1 + # env: + # MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + # with: + # command: upload + # args: --skip-existing *