diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ebf3335..0642dc55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,9 +30,6 @@ jobs: upload: needs: build if: startsWith(github.ref, 'refs/tags') - strategy: - matrix: - java: [11] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -42,21 +39,19 @@ jobs: run: | version=$(./gradlew properties | grep ^version:) tag=${GITHUB_REF#refs/*/} - dir=omero-ms-image-region_${{ matrix.java }} - for file in "$dir"/* - do - if [ -f "$file" ];then - filename=$(basename -- "$file") - #extension="${filename##*.}" - # name="${filename%.*}" - # newname="${name}_b${{github.run_number}}.${extension}" - # newname="${name}.${extension}" - # echo $newname - # mv $dir/$filename $dir/$newname - sha256sum $dir/$filename >> SHASUMS - fi + for file in */* + do + if [ -f "$file" ];then + base=$(dirname $file) + version="${base##*_}" + filename=$(basename -- "$file") + extension="${filename##*.}" + name="${filename%.*}" + newname="${name}_$version.${extension}" + mv $file $newname + sha256sum $newname >> SHASUMS + fi done - title="$version_b${{github.run_number}}" - gh release create $tag $dir/*.zip $dir/*.tar SHASUMS --title "$title" --notes-from-tag + gh release create $tag *.zip *.tar SHASUMS --notes-from-tag env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}