-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 972 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
33
34
35
36
37
38
39
40
41
42
43
44
---
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@v4
with:
distribution: 'temurin'
java-version: '17'
- name: get tag
uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "(.*)"
- name: Maven build
run: ./mvnw -Drevision=${{ env.GIT_TAG_NAME }} clean package
- uses: ncipollo/release-action@v1
with:
artifacts: "target/jfr-exporter-${{ env.GIT_TAG_NAME }}.jar"
body: "Release ${{ env.GIT_TAG_NAME }}"