Skip to content

Commit

Permalink
Merge pull request #6318 from jburel/upload_artifacts
Browse files Browse the repository at this point in the history
upload assets on tag
  • Loading branch information
jburel authored Jul 26, 2022
2 parents 9d0e36e + 2945cdf commit 8d20583
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
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 }}
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ To get started using Eclipse, execute "ant build-dev" and import the top-level
<arg value="${omero.home}/components/antlib/scripts/source-archive.py"/>
<arg value="openmicroscopy"/>
<arg value="${omero.shortversion}"/>
<arg value="${omero.plainversion}"/>
<arg value="${omero.version}"/>
<arg value="${omero.vcs.shortrevision}"/>
<arg value="${omero.vcs.revision}"/>
<arg value="${omero.vcs.date}"/>
Expand All @@ -269,7 +269,7 @@ To get started using Eclipse, execute "ant build-dev" and import the top-level

</target>

<target name="release-src" description="Package the git source tree into openmicroscopy-${omero.plainversion}.zip"
<target name="release-src" description="Package the git source tree into openmicroscopy-${omero.version}.zip"
depends="release-src-embed,release-src-git"/>

<target name="release-clients" description="Zip the Java zip">
Expand Down

0 comments on commit 8d20583

Please sign in to comment.