Skip to content

Use properties for CI #1670

Use properties for CI

Use properties for CI #1670

Workflow file for this run

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