-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (41 loc) · 1.61 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release New Version
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
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: 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.16.5
dependencies: |
fabric-api