Skip to content

Ported to 1.20.6 in prep for 1.21 #52

Ported to 1.20.6 in prep for 1.21

Ported to 1.20.6 in prep for 1.21 #52

Workflow file for this run

name: Build and deploy
on:
push:
branches: [ master,dev ]
workflow_dispatch:
inputs:
norelease:
description: 'No CF Release'
required: true
default: 'false'
jobs:
build:
runs-on: ubuntu-latest
if: |
!contains(github.event.head_commit.message, '[ciskip]')
steps:
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/checkout@v2
with:
fetch-depth: 30
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
env:
SAPS_TOKEN: ${{ secrets.SAPS_TOKEN }}
run: |
chmod +x ./gradlew
./gradlew build publish --stacktrace --no-daemon
- name: Release to CurseForge
if: |
!contains(github.event.head_commit.message, '[norelease]') && github.event.inputs.norelease != 'true' && github.ref == 'refs/heads/master'
env:
GIT_COMMIT: ${{ github.event.after }}
GIT_PREVIOUS_COMMIT: ${{ github.event.before }}
CURSEFORGE_KEY: ${{ secrets.CURSEFORGE_KEY }}
run: |
chmod +x ./gradlew
./gradlew build publishMods --stacktrace --no-daemon