Build 0.3.0 by @PeterPaul-Perfana #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release | |
run-name: Build ${{ github.ref_name }} by @${{ github.actor }} | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get short SHA | |
id: vars | |
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Maven build | |
run: ./mvnw clean package | |
- name: get tag | |
uses: olegtarasov/[email protected] | |
id: tagName | |
with: | |
tagRegex: "(.*)" | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "target/jfr-exporter-*.jar" | |
body: "Release ${{ env.GIT_TAG_NAME }}" |