Skip to content

Commit b485017

Browse files
committed
Update (ci): github action's artifact upgrade due to EOL for versions less than 4
1 parent 110d621 commit b485017

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

.github/workflows/_build-packages.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Keep artifact
2929
id: keep-artifact
3030
run: python -c "print('DAYS=' + str(5 if '${{ github.event_name }}'.startswith('pull_request') else 0))" >> $GITHUB_OUTPUT
31-
- uses: actions/upload-artifact@v3
31+
- uses: actions/upload-artifact@v4
3232
with:
3333
name: ${{ inputs.artifact-name }}
3434
path: dist
@@ -44,10 +44,11 @@ jobs:
4444
pkg-name: ${{ fromJSON(inputs.pkg-names) }}
4545
steps:
4646
- uses: actions/checkout@v4
47-
- uses: actions/download-artifact@v3
47+
- uses: actions/download-artifact@v4
4848
with:
4949
name: ${{ inputs.artifact-name }}
5050
path: pypi
51+
merge-multiple: true
5152
- uses: actions/setup-python@v5
5253
with:
5354
python-version: 3.9
@@ -63,8 +64,9 @@ jobs:
6364
mkdir pypi/${{ matrix.pkg-name }}
6465
cp dist/* pypi/${{ matrix.pkg-name }}/
6566
66-
- uses: actions/upload-artifact@v3
67+
- uses: actions/upload-artifact@v4
6768
with:
6869
name: ${{ inputs.artifact-name }}
6970
path: pypi
7071
include-hidden-files: true
72+
overwrite: true

.github/workflows/_legacy-checkpoints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
python -c "print('AWS_RUN=' + str('' if '${{inputs.push_to_s3}}' == 'true' else '--dryrun'))" >> $GITHUB_ENV
105105
106106
- name: Upload checkpoints to GitHub Actions artifact
107-
uses: actions/upload-artifact@v3
107+
uses: actions/upload-artifact@v4
108108
with:
109109
name: checkpoints-${{ github.sha }}
110110
path: ${{ env.LEGACY_FOLDER }}/checkpoints/

.github/workflows/ci-pkg-install.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ jobs:
5050
- uses: actions/setup-python@v5
5151
with:
5252
python-version: ${{ matrix.python-version }}
53-
- uses: actions/download-artifact@v3
53+
- uses: actions/download-artifact@v4
5454
with:
5555
name: dist-packages-${{ github.sha }}
5656
path: dist
57+
merge-multiple: true
5758

5859
- name: Set package dir
5960
run: |

.github/workflows/docs-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
run: echo "ARTIFACT_DAYS=7" >> $GITHUB_ENV
130130
- name: Upload built docs
131131
if: ${{ matrix.target == 'html' }}
132-
uses: actions/upload-artifact@v3
132+
uses: actions/upload-artifact@v4
133133
with:
134134
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
135135
path: docs/build/html/
@@ -158,10 +158,11 @@ jobs:
158158
# use input if dispatch or git tag
159159
VERSION: ${{ inputs.version || github.ref_name }}
160160
steps:
161-
- uses: actions/download-artifact@v3
161+
- uses: actions/download-artifact@v4
162162
with:
163163
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
164164
path: docs/build/html/
165+
merge-multiple: true
165166

166167
- name: Authenticate to Google Cloud
167168
uses: google-github-actions/auth@v2

.github/workflows/release-pkg.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ jobs:
3838
if: github.event_name == 'release'
3939
steps:
4040
- uses: actions/checkout@v4
41-
- uses: actions/download-artifact@v3
41+
- uses: actions/download-artifact@v4
4242
with:
4343
name: dist-packages-${{ github.sha }}
4444
path: dist
45+
merge-multiple: true
4546
- run: ls -lh dist/
4647
- name: Upload to release
4748
uses: AButler/[email protected]
@@ -140,10 +141,11 @@ jobs:
140141
name: ["FABRIC", "PYTORCH", "LIGHTNING"]
141142
steps:
142143
- uses: actions/checkout@v4 # needed for local action below
143-
- uses: actions/download-artifact@v3
144+
- uses: actions/download-artifact@v4
144145
with:
145146
name: dist-packages-${{ github.sha }}
146147
path: dist
148+
merge-multiple: true
147149
- name: Browse folder
148150
id: folder
149151
run: |
@@ -165,10 +167,11 @@ jobs:
165167
name: ["FABRIC", "PYTORCH", "LIGHTNING"]
166168
steps:
167169
- uses: actions/checkout@v4 # needed for local action below
168-
- uses: actions/download-artifact@v3
170+
- uses: actions/download-artifact@v4
169171
with:
170172
name: dist-packages-${{ github.sha }}
171173
path: dist
174+
merge-multiple: true
172175
- name: Browse folder
173176
id: folder
174177
run: |

0 commit comments

Comments
 (0)