Skip to content

Commit 5df318f

Browse files
feat: Add GitHub Actions workflow for releases
This workflow creates a release with the JAR artifact on every push to the re-write branch.
1 parent 571140f commit 5df318f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Java CI with Maven
2+
3+
on:
4+
push:
5+
branches: [ "re-write" ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up JDK 21
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '21'
18+
distribution: 'temurin'
19+
cache: maven
20+
- name: Build with Maven
21+
run: mvn -B package --file pom.xml
22+
- name: Create Release
23+
uses: "marvinpinto/action-automatic-releases@latest"
24+
with:
25+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
26+
automatic_release_tag: "latest"
27+
prerelease: false
28+
files: |
29+
target/*.jar

0 commit comments

Comments
 (0)