KISS – Keep Inventories Sorted, Simple v0.5.0 #3
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: Publish Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
cache: 'gradle' | |
- name: Setup Gradle | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build --no-daemon | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: build/libs/ | |
- name: Publish to Modrinth and GitHub | |
uses: Kir-Antipov/[email protected] | |
with: | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
version-type: release |