-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.32 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Runs whenever a release is published on GitHub
name: RITE Release Workflow
on:
release:
types: [ published ]
# Builds RITE source with Java and Maven
# Caches Maven dependencies
# Uploads RITE zips to release page
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
distribution: [ temurin ]
java-version: [ 17 ]
os: [ ubuntu-22.04 ]
steps:
- name: Check out RITE source
uses: actions/[email protected]
- name: Set up Java and Maven
uses: actions/[email protected]
with:
cache: maven
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java-version }}
- name: Build RITE source
run: mvn -B package -f tools/rack/pom.xml -Dtycho.localArtifacts=ignore
- name: Rename RITE zips
run: |
cd tools/rack/rack.product/target/products
mv *-linux.gtk.x86_64.zip RITE-linux.gtk.x86_64-${{ github.event.release.tag_name }}.zip
mv *-macosx.cocoa.x86_64.zip RITE-macosx.cocoa.x86_64-${{ github.event.release.tag_name }}.zip
mv *-win32.win32.x86_64.zip RITE-win32.win32.x86_64-${{ github.event.release.tag_name }}.zip
- name: Upload RITE zips to release page
uses: softprops/[email protected]
with:
files: tools/rack/rack.product/target/products/*.zip