Workflow file for this run
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: Release Build | ||
env: | ||
CI: true | ||
BUILD_VERSION: 'v6.0.8-alpha' # TODO: Get from release tag. | ||
PUBLISH: false | ||
# Run when release is created on GitHub | ||
on: | ||
push: | ||
branches: | ||
# - 'dev/*' | ||
- 'feature/nightly-actions' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Make gradlew executable | ||
run: chmod +x ./gradlew | ||
- name: Clean | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: clean | ||
- name: Build | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: release-build | ||
path: build/libs/*.jar | ||
- name: Publish to CurseForge and Modrinth | ||
uses: gradle/gradle-build-action@v2 | ||
env: | ||
CURSEFORGE_TOKEN: 'TEST' | ||
MODRINTH_TOKEN: 'TEST'' | ||
with: | ||
arguments: publishMod | ||
# TODO: Publish to maven. |