Skip to content

Commit

Permalink
Merge pull request #32 from lincolnloop/fix-artifact-v4
Browse files Browse the repository at this point in the history
fixes for upload-artifact/download-artifact v4
  • Loading branch information
asottile authored Oct 22, 2024
2 parents 47640a4 + 3c9c13b commit 77d9246
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: dist
name: dist-sdist
path: dist

- uses: actions/upload-artifact@v4
Expand All @@ -52,7 +52,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: dist
name: dist-sdist
path: dist

- uses: actions/download-artifact@v4
Expand Down Expand Up @@ -89,9 +89,9 @@ jobs:
CIBW_BEFORE_BUILD_MACOS: "find . -name '*.o' -delete && IS_MACOS=1 ./pre_build.sh"
CIBW_BEFORE_BUILD_LINUX: "find . -name '*.o' -delete && ./pre_build.sh && (yum install -y zlib-devel || apk add zlib-dev)"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{ matrix.os }}-${{ matrix.arch }}
path: dist
verify:
name: Verify wheels
Expand All @@ -100,10 +100,13 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
path: dist
merge-multiple: true
- name: Verify sdist
run: ls -lh dist/*.tar.gz
- name: Verify wheels
run: ls -lh dist
run: ls -lh dist/*.whl
pypi-publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs: [verify]
Expand All @@ -117,7 +120,8 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
path: dist
merge-multiple: true
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Empty file removed append-version
Empty file.
2 changes: 1 addition & 1 deletion bin/package-version
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _ROOT = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))

# if 0: use the upstream version
# if >0: append `.post1` / `.a1` as needed
SERIAL = 0
SERIAL = 1


def main() -> int:
Expand Down

0 comments on commit 77d9246

Please sign in to comment.