Merge pull request #212 from MrTroble/feats_UI/1.18 #999
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 with Gradle | |
on: [push] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Change wrapper permissions | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
deploy: | |
if: endswith(github.ref_name, 'master') && github.ref_protected && github.ref_type == 'branch' | |
runs-on: ubuntu-latest | |
env: | |
APPVEYOR_BUILD_VERSION: '3.1.0' | |
CURSETOKEN: ${{ secrets.CURSETOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Change wrapper permissions | |
run: chmod +x ./gradlew | |
- name: Deploy | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: curseforge |