Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release artifacts #3934

Merged
merged 4 commits into from
Feb 7, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in a previous version of this commit, this is equivalent to the approach I took in bf8076e#diff-fdeb882f159787e553f8d2b7f340d498880a8a54e60ae5dee163671dc9009018R203-R211 to fix the bundle generation target.

<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