Skip to content

Commit

Permalink
Update (ci): github action's artifact upgrade due to EOL for versions…
Browse files Browse the repository at this point in the history
… less than 4
  • Loading branch information
alleeclark committed Dec 17, 2024
1 parent 110d621 commit 92d1b36
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/_build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Keep artifact
id: keep-artifact
run: python -c "print('DAYS=' + str(5 if '${{ github.event_name }}'.startswith('pull_request') else 0))" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: dist
Expand All @@ -44,10 +44,11 @@ jobs:
pkg-name: ${{ fromJSON(inputs.pkg-names) }}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: pypi
merge-multiple: true
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand All @@ -63,8 +64,9 @@ jobs:
mkdir pypi/${{ matrix.pkg-name }}
cp dist/* pypi/${{ matrix.pkg-name }}/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: pypi
include-hidden-files: true
overwrite: true
2 changes: 1 addition & 1 deletion .github/workflows/_legacy-checkpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
python -c "print('AWS_RUN=' + str('' if '${{inputs.push_to_s3}}' == 'true' else '--dryrun'))" >> $GITHUB_ENV
- name: Upload checkpoints to GitHub Actions artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: checkpoints-${{ github.sha }}
path: ${{ env.LEGACY_FOLDER }}/checkpoints/
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-pkg-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist-packages-${{ github.sha }}
path: dist
merge-multiple: true

- name: Set package dir
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
run: echo "ARTIFACT_DAYS=7" >> $GITHUB_ENV
- name: Upload built docs
if: ${{ matrix.target == 'html' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
path: docs/build/html/
Expand Down Expand Up @@ -158,10 +158,11 @@ jobs:
# use input if dispatch or git tag
VERSION: ${{ inputs.version || github.ref_name }}
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: docs-${{ matrix.pkg-name }}-${{ github.sha }}
path: docs/build/html/
merge-multiple: true

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ jobs:
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist-packages-${{ github.sha }}
path: dist
merge-multiple: true
- run: ls -lh dist/
- name: Upload to release
uses: AButler/[email protected]
Expand Down Expand Up @@ -140,10 +141,11 @@ jobs:
name: ["FABRIC", "PYTORCH", "LIGHTNING"]
steps:
- uses: actions/checkout@v4 # needed for local action below
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist-packages-${{ github.sha }}
path: dist
merge-multiple: true
- name: Browse folder
id: folder
run: |
Expand All @@ -165,10 +167,11 @@ jobs:
name: ["FABRIC", "PYTORCH", "LIGHTNING"]
steps:
- uses: actions/checkout@v4 # needed for local action below
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: dist-packages-${{ github.sha }}
path: dist
merge-multiple: true
- name: Browse folder
id: folder
run: |
Expand Down

0 comments on commit 92d1b36

Please sign in to comment.