Skip to content

Commit

Permalink
build: Update download and upload artifact actions
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Mar 25, 2024
1 parent 54b11f2 commit a7a1118
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,32 @@ jobs:
with:
fail_ci_if_error: false
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: On failure, create alternate baseline images in case the new behavior is correct
if: ${{ failure() }}
run: |
pip3 install girder_client
python3 tests/runners/baseline_images.py -cevb _build
- name: Upload test images on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: images
path: |
_build/images
_build/Baseline*tgz
- name: Upload artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: |
dist/apidocs
dist/built
- name: Upload built website
if: ${{ success() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: website
path: |
Expand Down Expand Up @@ -90,7 +92,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Import artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: website
path: website/public
Expand All @@ -110,7 +112,7 @@ jobs:
node-version: 'lts/*'
- run: npm ci
- name: Import artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist
Expand Down

0 comments on commit a7a1118

Please sign in to comment.