Skip to content

Commit

Permalink
Fix artifact publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Mar 27, 2024
1 parent 11c7de8 commit 09436e3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ 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: wheels
name: orjson_sdist
path: dist
retention-days: 1

Expand Down Expand Up @@ -101,10 +101,10 @@ jobs:
- run: ./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: wheels
name: orjson_manylinux_2_17_amd64_${{ matrix.python.version }}
path: dist
retention-days: 1

Expand Down Expand Up @@ -175,10 +175,10 @@ jobs:
venv/bin/python -m pytest -s -rxX -v test
- name: Store wheels
if: "startsWith(github.ref, 'refs/tags/')"
# if: "startsWith(github.ref, 'refs/tags/')"
uses: actions/upload-artifact@v4
with:
name: wheels
name: orjson_musllinux_1_2_${{ matrix.platform.arch }}_${{ matrix.python.version }}
path: dist
retention-days: 1

Expand Down Expand Up @@ -270,22 +270,22 @@ jobs:
venv/bin/python -m pytest -s -rxX -v -n 2 test
- name: Store wheels
if: "startsWith(github.ref, 'refs/tags/')"
# if: "startsWith(github.ref, 'refs/tags/')"
uses: actions/upload-artifact@v4
with:
name: wheels
name: orjson_musllinux_1_2_${{ matrix.target.arch }}_${{ matrix.python.version }}
path: dist
retention-days: 1

pypi:
name: PyPI
runs-on: ubuntu-22.04
if: "startsWith(github.ref, 'refs/tags/')"
# if: "startsWith(github.ref, 'refs/tags/')"
needs: [ manylinux_2_17_amd64, manylinux_2_17_non_amd64, musllinux_1_2, sdist ]
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: orjson_*
- uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand Down

0 comments on commit 09436e3

Please sign in to comment.