-
-
Notifications
You must be signed in to change notification settings - Fork 32
49 lines (43 loc) · 1.43 KB
/
gradle_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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
push:
env:
APP_JAVA_VERSION: 17
jobs:
build:
name: Build mod
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ env.APP_JAVA_VERSION }}
- name: Restore keystore
env:
KEYSTORE_FORGE_MODS: ${{ secrets.KEYSTORE_FORGE_MODS }}
if: env.KEYSTORE_FORGE_MODS != null
run: |
echo "${{ secrets.KEYSTORE_FORGE_MODS }}" > keystoreForgeMods.jks.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_FORGE_MODS_PASSPHRASE }}" --batch keystoreForgeMods.jks.asc > keystoreForgeMods.jks
- name: Build project
uses: gradle/[email protected]
with:
arguments: |
clean
build
-PforgeKeyStore="keystoreForgeMods.jks"
-PforgeKeyStoreAlias="${{ secrets.KEYSTORE_FORGE_MODS_ALIAS }}"
-PforgeKeyStorePass="${{ secrets.KEYSTORE_FORGE_MODS_STORE_PASS }}"
-PforgeKeyStoreKeyPass="${{ secrets.KEYSTORE_FORGE_MODS_KEY_PASS }}"
-PforgeSignSHA1="f927f4701bf4c0620c7bd0a501ce278f5e5ecc62"
- name: Upload mod file
uses: actions/upload-artifact@v3
with:
name: mod-file
path: |
build/libs/*.jar
if-no-files-found: error
retention-days: 14