SQLib 2.2.7 #42
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 New Version | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Set Version | |
uses: jossef/[email protected] | |
with: | |
file: src/main/resources/fabric.mod.json | |
field: version | |
value: ${{ github.event.release.tag_name }} | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Execute Gradle build | |
run: ./gradlew build | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v4 | |
if: success() | |
with: | |
fail_on_failure: true | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
- name: Rename File | |
run: | | |
mv ${{ github.workspace }}/build/libs/sqlib.jar ${{ github.workspace }}/sqlib-${{ github.event.release.tag_name }}.jar; | |
mv ${{ github.workspace }}/build/libs/sqlib-javadoc.jar ${{ github.workspace }}/sqlib-${{ github.event.release.tag_name }}-javadoc.jar; | |
mv ${{ github.workspace }}/build/libs/sqlib-sources.jar ${{ github.workspace }}/sqlib-${{ github.event.release.tag_name }}-sources.jar; | |
- name: Publish Release | |
uses: Kir-Antipov/[email protected] | |
with: | |
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | |
files: | | |
${{ github.workspace }}/sqlib-${{ github.event.release.tag_name }}.jar | |
${{ github.workspace }}/sqlib-${{ github.event.release.tag_name }}-javadoc.jar | |
${{ github.workspace }}/sqlib-${{ github.event.release.tag_name }}-sources.jar | |
java: 17 | |
game-versions: | | |
1.20.2 | |
1.20.1 | |
1.20 | |
1.19.4 | |
1.19.3 | |
1.19.2 | |
1.19.1 | |
1.19 | |
1.18.2 | |
1.18.1 | |
1.18 | |
1.17.1 | |
1.17 | |
1.16.5 | |
dependencies: | | |
fabric-api |