Skip to content

SQLib 3.2.4

SQLib 3.2.4 #80

Workflow file for this run

name: Release New Version
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Set Version
run: |
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' src/main/resources/fabric.mod.json
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' src/main/resources/velocity-plugin.json
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Execute Gradle build
run: ./gradlew build
- name: Rename Files
run: |
mv ${{ github.workspace }}/build/libs/sqlib-all.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 }}
modrinth-featured: true
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: 21
game-versions: |
>=1.16.5