-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (34 loc) · 892 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build
on:
push:
tags:
- '*'
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Build
env:
SIGNJAR_KEYSTORE: ${{ secrets.SIGNJAR_KEYSTORE }}
SIGNJAR_ALIAS: ${{ secrets.SIGNJAR_ALIAS }}
SIGNJAR_STOREPASS: ${{ secrets.SIGNJAR_STOREPASS }}
SIGNJAR_KEYPASS: ${{ secrets.SIGNJAR_KEYPASS }}
run: |
chmod +x gradlew
./gradlew --no-daemon build
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
build/libs/*.jar