Lockdown some plugin versions because GA is being a PITA #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI | |
on: [push] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
- name: Cache Gradle files | |
uses: actions/cache@v2 | |
if: ${{ !env.ACT }} | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('*/build.gradle', '*/settings.gradle', '*gradle.*') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: | | |
publish | |
env: | |
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }} | |
KEY_STORE_ALIAS: ${{ secrets.KEY_STORE_ALIAS }} | |
KEY_STORE_KEY_PASS: ${{ secrets.KEY_STORE_KEY_PASS }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MODRINTH: ${{ secrets.MODRINTH }} | |
CURSE: ${{ secrets.CURSE }} |