Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fixes for upload-artifact/download-artifact v4 #32

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading