forked from zmilla93/SlimTrade
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 967 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
name: Release JAR
on: workflow_dispatch
jobs:
build-and-release:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build the JAR file
run: mvn clean compile assembly:single
- name: Extract app version from pom.xml
run: |
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Create release
uses: ncipollo/release-action@v1
with:
name: SlimTrade ${{ env.VERSION }}
tag: ${{ env.VERSION }}
prerelease: true
bodyFile: src/main/resources/patch_notes/v${{ env.VERSION }}.txt
artifacts: target/SlimTrade.jar
token: ${{ secrets.GITHUB_TOKEN }}