feat: github releases workflow

This commit is contained in:
darksaid98 committed 2023-06-25 03:43:13 +02:00
1 parent 850bf6768d
commit bf80f8d0f3
1 file changed
+28
+28
View File
@@ -0,0 +1,28 @@
name: Build with Maven
on:
release:
types: [ published ]
branches: [ main ]
jobs:
publish_build_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload Release Assets
uses: AButler/[email protected]
with:
files: 'target/AlathraWar-*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.release.tag_name }}