Skip to content

RITE Release Workflow #15

RITE Release Workflow

RITE Release Workflow #15

Workflow file for this run

# 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