Skip to content

Commit

Permalink
prerelease build
Browse files Browse the repository at this point in the history
  • Loading branch information
zmilla93 committed Dec 14, 2024
1 parent ed0536d commit 83ba775
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release JAR

on:
push:
branches: [ "master" ]

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
bodyFile: src/main/resources/patch_notes_prerelease/static.txt
artifacts: target/SlimTrade.jar
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Test

on:
push:
branches: [ "dev" ]
branches: [ "master" ]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<groupId>github.zmilla93</groupId>
<artifactId>slimtrade</artifactId>
<version>0.5.0</version>
<version>0.5.0-pre1</version>
<packaging>jar</packaging>

<properties>
Expand Down

0 comments on commit 83ba775

Please # to comment.