We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd924ad + 40e5565 commit 9acfbdfCopy full SHA for 9acfbdf
.github/workflows/release.yml
@@ -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
28
+ args: target/EnchantBookPlus-${{ github.event.release.tag_name }}.jar application/java-archive
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments