Skip to content

Commit

Permalink
Upgrade artifact actions to v4 (#32391)
Browse files Browse the repository at this point in the history
* Upgrade artifact actions to v4

* Fix typo
  • Loading branch information
damccorm authored Sep 4, 2024
1 parent 2b02fd3 commit 34a7c4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ jobs:
run: mv $(ls | grep "apache-beam-\|apache_beam-") apache-beam-source
- name: Upload source as artifact
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source
path: sdks/python/apache-beam-source
- name: Upload compressed sources as artifacts
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source_zip
path: sdks/python/dist
Expand Down Expand Up @@ -173,14 +173,14 @@ jobs:
- name: Upload RC source as artifact
if: steps.is_rc.outputs.is_rc == 1
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source_rc${{ steps.get_rc_version.outputs.RC_NUM }}
path: sdks/python/apache-beam-source-rc
- name: Upload compressed RC sources as artifacts
if: steps.is_rc.outputs.is_rc == 1
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source_zip_rc${{ steps.get_rc_version.outputs.RC_NUM }}
path: sdks/python/dist
Expand All @@ -207,7 +207,7 @@ jobs:
steps:
- name: Download compressed sources from artifacts
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: source_zip
path: source/
Expand Down Expand Up @@ -238,14 +238,14 @@ jobs:
steps:
- name: Download python source distribution from artifacts
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: source
path: apache-beam-source
- name: Download Python SDK RC source distribution from artifacts
if: ${{ needs.build_source.outputs.is_rc == 1 }}
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: source_rc${{ needs.build_source.outputs.rc_num }}
path: apache-beam-source-rc
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
- name: Upload wheels as artifacts
if: ${{ contains(matrix.os_python.python, matrix.py_version) }}
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheelhouse-${{ matrix.os_python.os }}${{ (matrix.os_python.arch == 'aarch64' && '-aarch64') || '' }}
path: apache-beam-source/wheelhouse/
Expand All @@ -310,7 +310,7 @@ jobs:
- name: Upload RC wheels as artifacts
if: ${{ needs.build_source.outputs.is_rc == 1 }}
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheelhouse-rc${{ needs.build_source.outputs.rc_num }}-${{ matrix.os_python.os }}${{ (matrix.arch == 'aarch64' && '-aarch64') || '' }}
path: apache-beam-source-rc/wheelhouse/
Expand All @@ -334,7 +334,7 @@ jobs:
steps:
- name: Download wheels from artifacts
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.7
with:
name: wheelhouse-${{ matrix.os }}${{ (matrix.arch == 'aarch64' && '-aarch64') || '' }}
path: wheelhouse/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
python-version: ${{ matrix.python }}
go-version: default
- name: Download source from artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v4.1.7
with:
name: python_sdk_source
path: apache-beam-source
Expand Down

0 comments on commit 34a7c4f

Please sign in to comment.