Skip to content

Commit

Permalink
Merge pull request #73 from bgilbert/artifacts
Browse files Browse the repository at this point in the history
workflows: add JAR release artifact; drop source tarball
  • Loading branch information
bgilbert authored Apr 10, 2024
2 parents f78c135 + aa149f4 commit 294ec9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
@@ -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)
11 changes: 7 additions & 4 deletions .github/workflows/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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" \
Expand Down

0 comments on commit 294ec9a

Please sign in to comment.