Skip to content

fix refmaps and cleanup some backend code #33

fix refmaps and cleanup some backend code

fix refmaps and cleanup some backend code #33

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: 17
- name: Set Version
run: |
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' gradle.properties
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' common/src/main/java/me/mrnavastar/protoweaver/core/util/ProtoConstants.java
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' loader-fabric/src/main/resources/fabric.mod.json
sed -i 's/0.debug-build/${{ github.event.release.tag_name }}/g' loader-forge/src/main/resources/META_INF/mods.toml
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' loader-plugin/src/main/resources/plugin.yml
sed -i 's/debug-build/${{ github.event.release.tag_name }}/g' proxy/src/main/resources/bungee.yml
- name: Build
uses: gradle/gradle-build-action@v3
run: ./gradlew build
- name: Move Files
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;
${{ github.workspace }}/loader-forge/build/libs/protoweaver-${{ github.event.release.tag_name }}-forge.jar
${{ github.workspace }}/loader-plugin/build/libs/protoweaver-${{ github.event.release.tag_name }}-plugin.jar
${{ github.workspace }}/proxy/build/libs/protoweaver-${{ github.event.release.tag_name }}-proxy.jar