Skip to content

Commit

Permalink
Merge pull request #448 from pwalczysko/fix-gha
Browse files Browse the repository at this point in the history
Adjust the upload and download of artifacts v4
  • Loading branch information
jburel authored Sep 19, 2024
2 parents 960cef8 + 35e63f4 commit 5750f8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,28 @@ jobs:
if: startsWith(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8')
uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-${{ matrix.os }}-OMERO
path: build/distributions/OMERO*
if-no-files-found: error
- name: Upload jar
if: startsWith(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8')
uses: actions/upload-artifact@v3
with:
name: artifacts
name: artifacts-${{ matrix.os }}-omero_
path: build/libs/omero_*
if-no-files-found: error
- name: Upload insight artifacts
if: startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8')
uses: actions/upload-artifact@v3
with:
name: artifacts
name: artifacts-${{ matrix.os }}-insight
path: build/packaged/main/bundles/*
if-no-files-found: error
- name: Upload importer artifacts
if: startsWith(matrix.os, 'windows') && startsWith(github.ref, 'refs/tags') && startsWith(matrix.java, '8')
uses: actions/upload-artifact@v3
with:
name: artifacts
name: artifacts-${{ matrix.os }}-importer
path: build/packaged/installImporterDist/bundles/*

release:
Expand All @@ -115,7 +115,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/*
file: artifacts*/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 5750f8f

Please sign in to comment.