-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.09 KB
/
publish.yml
File metadata and controls
36 lines (34 loc) · 1.09 KB
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
name: publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: setup jdk
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'microsoft'
- name: make gradle wrapper executable
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
- name: publish to modrinth and github
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: imaginefunutils
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
github-tag: ${{ github.event.release.tag_name }}
github-token: ${{ secrets.GITHUB_TOKEN }}
files: build/libs/!(*-@(dev-shadow|sources|javadoc|)).jar
name: ImagineFunUtils ${{ github.event.release.tag_name }}
version: ${{ github.event.release.tag_name }}
version-type: release
loaders: fabric
game-versions: 1.21.11