-
-
Notifications
You must be signed in to change notification settings - Fork 36
34 lines (29 loc) · 954 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
30
31
32
33
34
name: 'Publish to Modrinth, Hangar, Maven, and post to Discord'
on:
release:
branches: [master]
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish BreweryX release
uses: gradle/gradle-build-action@v3
env:
CHANGELOG: ${{ github.event.release.body }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }}
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
REPO_SECRET: ${{ secrets.REPO_SECRET }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
arguments: publishRelease -Dsources=true --stacktrace