forked from ome/bioformats
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 851 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: "Build and push artifacts"
on:
push:
tags:
- '*'
jobs:
build:
name: Release artifacts
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
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 }}