[publish] 1.0.0-alpha.15 #62
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: Standard Release | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
build: | |
if: | | |
contains(github.event.head_commit.message, '[publish]') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone project | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Fix borked permissions | |
run: chmod +x ./gradlew | |
- name: Run gradle tasks [build publish] | |
uses: gradle/gradle-build-action@v2 | |
env: | |
SNAPSHOT: false | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | |
with: | |
arguments: "build publishMods" | |
- name: Store artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gradle-build-output | |
path: ./**/libs/*.jar |