generated from calmilamsy/stationapi-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (48 loc) · 1.26 KB
/
publish.yaml
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
48
49
50
51
52
53
54
55
56
---
name: "Build and publish"
on:
release:
types: [published]
permissions:
contents: write
jobs:
build:
name: "Build"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build/libs/*.jar
publish:
name: "Publish"
needs: "build"
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
- uses: actions/download-artifact@v3
with:
name: build
path: build/libs
- uses: Kir-Antipov/[email protected]
with:
files: build/libs/!(*-@(dev|sources|javadoc)).jar
game-version-filter: betas
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-game-versions: b1.7.3
modrinth-id: ${{ vars.MODRINTH_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-files: |
build/libs/!(*-@(dev|sources|javadoc)).jar
build/libs/*-@(dev|sources|javadoc).jar