Skip to content

Commit 9acfbdf

Browse files
authored
Merge pull request #3 from cloudnode-pro/release-workflow
Create release.yml
2 parents bd924ad + 40e5565 commit 9acfbdf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Maven Release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
package-and-upload:
9+
name: Build and Upload JARs
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Java
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '17'
20+
distribution: 'corretto'
21+
22+
- name: Build and package Maven project
23+
run: mvn clean package
24+
25+
- name: Upload to release
26+
uses: JasonEtco/upload-to-release@master
27+
with:
28+
args: target/EnchantBookPlus-${{ github.event.release.tag_name }}.jar application/java-archive
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)