-
Notifications
You must be signed in to change notification settings - Fork 4
29 lines (28 loc) · 986 Bytes
/
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
name: publish
on: [ workflow_dispatch ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
cache-read-only: false
- name: :build
run: ./gradlew build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: zume
path: "**/zume-*.jar"
- name: :publishMods
run: ./gradlew publishMods
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}