Skip to content

Commit

Permalink
Apply changes to omit artifact upload issue (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchu authored Feb 28, 2024
1 parent 26bcfc6 commit 0ea5f8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: pypa/cibuildwheel@0ecddd92b62987d7a2ae8911f4bb8ec9e2e4496a # v2.13.1
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: artifact-wheels
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -41,6 +42,7 @@ jobs:
run: python -m build --sdist
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: artifact-sdist
path: dist/*.tar.gz

publish_package:
Expand All @@ -52,12 +54,13 @@ jobs:
packages: write
steps:
- name: Download artifacts
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85 # v4.1.3
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist
pattern: artifact-*
merge-multiple: true
# to determine where to publish the source distribution to PyPI or TestPyPI
- name: Check tag
id: check-tag
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/publish_internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: pypa/cibuildwheel@0ecddd92b62987d7a2ae8911f4bb8ec9e2e4496a # v2.13.1
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: artifact-wheels
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -39,6 +40,7 @@ jobs:
run: python -m build --sdist
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: artifact-sdist
path: dist/*.tar.gz

publish_package:
Expand All @@ -62,12 +64,13 @@ jobs:
pip install --require-hashes --no-deps -r /tmp/otx-publish-requirements.txt
rm /tmp/otx-publish-requirements.txt
- name: Download artifacts
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85 # v4.1.3
with:
# unpacks default artifact into dist/
# if `name: artifact` is omitted, the action will create extra parent dir
name: artifact
path: dist
pattern: artifact-*
merge-multiple: true
- name: Check tag
id: check-tag
uses: actions-ecosystem/action-regex-match@9e6c4fb3d5e898f505be7a1fb6e7b0a278f6665b # v2.0.2
Expand Down

0 comments on commit 0ea5f8f

Please sign in to comment.