Skip to content

Commit

Permalink
Fix trusted publishing upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Nov 2, 2024
1 parent 2e3d96d commit 4190945
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: [
{
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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,
Expand All @@ -552,7 +553,6 @@ jobs:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
name: python-package-distributions
path: dist/
pattern: orjson_*

Expand All @@ -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

0 comments on commit 4190945

Please sign in to comment.