mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-03 14:38:53 +00:00
ci: github release workflows
This commit is contained in:
1 parent
534bb9c373
commit
95e51559b4
1 file changed
+30
@@ -0,0 +1,30 @@
|
|||||||
|
name: Build & Upload Release jar with Maven
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [ published ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish_build_files:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Java
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '17'
|
||||||
|
cache: 'maven'
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
|
- name: Upload Release Assets
|
||||||
|
uses: AButler/[email protected]
|
||||||
|
with:
|
||||||
|
files: 'target/SiegeEngines-*.jar'
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
release-tag: ${{ github.event.release.tag_name }}
|
||||||
Reference in new issue
Block a user