Check slots before modification #732
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: CF CI | |
on: | |
push: | |
branches: | |
- 3.x | |
- 4.x-unstable | |
- 4.x | |
- 5.x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 16 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 16 | |
- name: Clean Gradle | |
run: ./gradlew clean --refresh-dependencies --stacktrace | |
env: | |
danielshe_curse_api_key: ${{ secrets.CF_API_KEY }} | |
BRANCH_NAME: ${{ github.ref }} | |
MAVEN_PASS: ${{ secrets.MAVEN_PASS }} | |
- name: Upload to CurseForge and Maven | |
run: ./gradlew build publish releaseOnCf publish --stacktrace | |
env: | |
danielshe_curse_api_key: ${{ secrets.CF_API_KEY }} | |
BRANCH_NAME: ${{ github.ref }} | |
MAVEN_PASS: ${{ secrets.MAVEN_PASS }} |