-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mc/1.20.1' of https://github.com/WhoCraft/TardisRefined …
…into mc/1.20.1
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish Minecraft Mod Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- mc/1.20.1 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Cache Gradle dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/settings.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- name: Set executable permission for gradlew | ||
run: chmod +x ./gradlew | ||
|
||
- name: Build Project | ||
run: ./gradlew build | ||
env: | ||
JAVA_HOME: ${{ env.JAVA_HOME }} | ||
|
||
- name: Run Gradle githubRelease | ||
run: ./gradlew githubRelease | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB }} |