From 4190945f91c3d66a1b48d935e1a350046a478110 Mon Sep 17 00:00:00 2001 From: ijl Date: Sat, 2 Nov 2024 01:02:42 +0000 Subject: [PATCH] Fix trusted publishing upload --- .github/workflows/artifact.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/artifact.yaml b/.github/workflows/artifact.yaml index 1faf5216..927b71f6 100644 --- a/.github/workflows/artifact.yaml +++ b/.github/workflows/artifact.yaml @@ -51,7 +51,7 @@ jobs: - run: ./integration/run typestubs - name: Store sdist - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v4 with: name: orjson_sdist @@ -71,6 +71,7 @@ jobs: { interpreter: 'python3.11', package: 'python3.11', compatibility: "manylinux_2_17" }, { interpreter: 'python3.10', package: 'python3.10', compatibility: "manylinux_2_17" }, { interpreter: 'python3.9', package: 'python3.9', compatibility: "manylinux_2_17" }, + { interpreter: 'python3.8', package: 'python3.8', compatibility: "manylinux_2_17" }, ] arch: [ { @@ -144,7 +145,7 @@ jobs: cp ${CARGO_TARGET_DIR}/wheels/orjson*.whl dist - name: Store wheels - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v4 with: name: orjson_manylinux_2_17_amd64_${{ matrix.python.interpreter }} @@ -230,7 +231,7 @@ jobs: cp ${CARGO_TARGET_DIR}/wheels/orjson*.whl dist - name: Store wheels - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v4 with: name: orjson_manylinux_aarch64_${{ matrix.python.interpreter }} @@ -306,7 +307,7 @@ jobs: venv/bin/python -m pytest -v test - name: Store wheels - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v4 with: name: orjson_musllinux_${{ matrix.platform.arch }}_${{ matrix.python.version }} @@ -379,7 +380,7 @@ jobs: args: --release --strip --out=dist --features=${{ matrix.target.features }} -i python${{ matrix.python.version }} - name: Store wheels - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v4 with: name: orjson_manylinux_2_17_${{ matrix.target.arch }}_${{ matrix.python.version }} @@ -452,7 +453,7 @@ jobs: - run: source .venv/bin/activate && ./integration/run init - name: Store wheels - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v4 with: name: orjson_universal2_aarch64_${{ matrix.python.version }} @@ -522,7 +523,7 @@ jobs: - run: source .venv/bin/activate && ./integration/run init - name: Store wheels - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" uses: actions/upload-artifact@v4 with: name: orjson_universal2_amd64_${{ matrix.python.version }} @@ -533,7 +534,7 @@ jobs: pypi: name: PyPI runs-on: ubuntu-24.04 - if: "startsWith(github.ref, 'refs/tags/')" + # if: "startsWith(github.ref, 'refs/tags/')" needs: [ macos_aarch64, macos_amd64, @@ -552,7 +553,6 @@ jobs: - uses: actions/download-artifact@v4 with: merge-multiple: true - name: python-package-distributions path: dist/ pattern: orjson_* @@ -567,7 +567,5 @@ jobs: with: attestations: true packages-dir: dist - repository-url: https://github.com/ijl/orjson skip-existing: true - user: ijl verbose: true