-
Notifications
You must be signed in to change notification settings - Fork 43
35 lines (32 loc) · 1.22 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
name: Release
run-name: Create Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Extract tag version
run: echo "tag=$(echo '${{ github.ref_name }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(-p[0-9]+)?')" >> $GITHUB_OUTPUT
id: extract_tag_version
- name: Build project
run: ./gradlew clean build
- name: Create Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.RELEASE_ACTIONS_TOKEN }}
files: |
./scavenger-agent-java/build/libs/scavenger-agent-java-${{ steps.extract_tag_version.outputs.tag }}.jar
./scavenger-old-agent-java/build/libs/scavenger-old-agent-java-${{ steps.extract_tag_version.outputs.tag }}.jar
./scavenger-api/build/libs/scavenger-api-${{ steps.extract_tag_version.outputs.tag }}.jar
./scavenger-collector/build/libs/scavenger-collector-${{ steps.extract_tag_version.outputs.tag }}.jar
generate_release_notes: true