Skip to content

Commit

Permalink
Merge pull request #5 from jburel/expand_release
Browse files Browse the repository at this point in the history
Expand release
  • Loading branch information
jburel authored Jul 22, 2024
2 parents a3d0d25 + 35c40d4 commit e41eaaa
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit e41eaaa

Please sign in to comment.