This repository was archived by the owner on Apr 20, 2025. It is now read-only.
KISS – Keep Inventories Sorted, Simple v0.5.1 #4
Workflow file for this run
This file contains hidden or 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/mc-publish@v3.3.0 | |
| with: | |
| modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| version-type: release |