Skip to content

Commit 8001df5

Browse files
committed
add auto deploy
1 parent 8ee46b1 commit 8001df5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/dev_build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Development Build
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
permissions: write-all
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@v4
13+
- name: Set up Java
14+
uses: actions/setup-java@v4
15+
with:
16+
java-version: 21
17+
distribution: adopt
18+
- name: Build with Gradle
19+
run: ./gradlew build
20+
- name: grab release tag
21+
id: branch_tag
22+
run: |
23+
echo "tag=$(echo v${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
24+
- name: Release
25+
uses: marvinpinto/action-automatic-releases@latest
26+
with:
27+
repo_token: '${{ secrets.GITHUB_TOKEN }}'
28+
automatic_release_tag: '${{ env.tag }}'
29+
prerelease: true
30+
title: 'Dev Build for ${{ env.tag }}'
31+
files: |
32+
./build/libs/*.jar

0 commit comments

Comments
 (0)