Skip to content

Commit

Permalink
Merge pull request ome#3934 from jburel/release_artifacts
Browse files Browse the repository at this point in the history
Release artifacts
  • Loading branch information
dgault authored Feb 7, 2023
2 parents a567738 + c6cd3cc commit 590a2ba
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: Build with Ant
run: ./tools/test-build ant
run: |
./tools/test-build ant
ant docs
- name: Upload artifacts
# upload just one set of artifacts for easier PR review
if: matrix.os == 'ubuntu-latest' && matrix.java == '1.8'
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 up JDK
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'
- name: Build artifacts
run: |
./tools/test-build ant
ant release docs
- name: Create a release and upload Release Assets
run: |
cd artifacts
sha256sum ./*.zip >> SHASUMS
sha256sum ./*.jar >> SHASUMS
sha256sum ./*.xz >> SHASUMS
sha256sum ./*.gz >> SHASUMS
tag_name="${GITHUB_REF##*/}"
gh release create "$tag_name" ./*.zip ./*.jar ./*.xz ./*.gz SHASUMS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 13 additions & 2 deletions components/bundles/bioformats_package/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,26 @@ Download Apache Ant from http://ant.apache.org/.
Type "ant -p" for a list of targets.
-->

<project name="bioformats_package" default="bundle" basedir=".">
<project name="bioformats_package" default="bundle" basedir="." xmlns:resolver="antlib:org.apache.maven.resolver.ant">
<description>Build file for Bio-Formats bundle</description>
<property name="root.dir" location="../../.."/>
<import file="${root.dir}/ant/java.xml"/>
<import file="${root.dir}/ant/java.xml" />
<property file="build.properties"/>


<target name="docs" depends="javadoc-properties"
description="generate the Javadocs for most components">
<echo>----------=========== Javadocs ===========----------</echo>
<path id="compile.classpath"/>
<path id="runtime.classpath"/>

<resolver:resolve>
<dependencies>
<pom refid="pom"/>
</dependencies>
<path refid="compile.classpath" classpath="compile"/>
<path refid="runtime.classpath" classpath="runtime"/>
</resolver:resolve>
<tstamp>
<format property="YEAR" pattern="yyyy"/>
</tstamp>
Expand Down

0 comments on commit 590a2ba

Please sign in to comment.