Skip to content

Commit

Permalink
Adjust the upload and download of artifacts v4
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalczysko committed Sep 19, 2024
1 parent a3ea82d commit 35e63f4
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@v4
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@v4
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@v4
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 35e63f4

Please sign in to comment.