diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/ISSUE_TEMPLATE/release.md index 436c997..9b5677e 100644 --- a/.github/ISSUE_TEMPLATE/release.md +++ b/.github/ISSUE_TEMPLATE/release.md @@ -1,9 +1,8 @@ # OpenSlide Java release process -- [ ] Run test build and `meson dist` - [ ] Update `CHANGELOG.md` and version in `meson.build` - [ ] Create and push signed tag -- [ ] Verify that GitHub Actions created a [GitHub release](https://github.com/openslide/openslide-java/releases) with release notes and a source tarball +- [ ] Verify that GitHub Actions created a [GitHub release](https://github.com/openslide/openslide-java/releases) with release notes and a JAR - [ ] Update website: `_data/releases.yaml`, `_includes/news.md` - [ ] Send mail to -announce and -users - [ ] Post to [forum.image.sc](https://forum.image.sc/c/announcements/10) diff --git a/.github/workflows/java.yaml b/.github/workflows/java.yaml index bbd1847..e9686a4 100644 --- a/.github/workflows/java.yaml +++ b/.github/workflows/java.yaml @@ -75,11 +75,13 @@ jobs: id: dist if: matrix.dist run: | - meson dist -C builddir + set -o pipefail dist="openslide-java-dist-$GITHUB_RUN_NUMBER-$(echo $GITHUB_SHA | cut -c-10)" echo "dist-base=$dist" >> $GITHUB_OUTPUT mkdir -p "artifacts/$dist" - mv builddir/meson-dist/*.tar.xz "artifacts/$dist" + version=$(meson introspect --projectinfo builddir | jq -r .version) + mv builddir/openslide.jar \ + "artifacts/${dist}/openslide-java-${version}.jar" - name: Archive dist if: matrix.dist uses: actions/upload-artifact@v4 @@ -97,6 +99,8 @@ jobs: permissions: contents: write steps: + - name: Check out repo + uses: actions/checkout@v4 - name: Download artifacts uses: actions/download-artifact@v4 with: @@ -107,11 +111,10 @@ jobs: GITHUB_TOKEN: ${{ github.token }} run: | version=$(echo "${{ github.ref_name }}" | sed "s/^v//") - tar xf "${{ needs.build.outputs.dist-base }}/openslide-java-${version}.tar.xz" awk -e '/^## / && ok {exit}' \ -e '/^## / {ok=1; next}' \ -e 'ok {print}' \ - "openslide-java-${version}/CHANGELOG.md" > changes + CHANGELOG.md > changes gh release create --prerelease --verify-tag \ --repo "${{ github.repository }}" \ --title "OpenSlide Java $version" \