-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6318 from jburel/upload_artifacts
upload assets on tag
- Loading branch information
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "Build and push artifacts" | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Release artifacts | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set version | ||
run: | | ||
tag_name="${GITHUB_REF##*/}" | ||
tag_name=$(grep -o '[0-9].*' <<< $tag_name) | ||
tag_value="${tag_name}-ice36" | ||
echo "omero.version=$tag_value" >> etc/local.properties | ||
- name: Build and package | ||
run: ./build.py build-dev release-all release-src | ||
- name: Create a release and upload Release Assets | ||
run: | | ||
cd target | ||
tag_name="${GITHUB_REF##*/}" | ||
sha256sum ./*.zip >> SHASUMS | ||
gh release create "$tag_name" ./*.zip SHASUMS | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters