-
-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (35 loc) · 1.12 KB
/
build.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
name: Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Import gradle properties
shell: bash
run: cat gradle.properties >> $GITHUB_ENV
- name: Build
run: ./gradlew build --stacktrace
- name: Publish
run: ./gradlew modrinth --stacktrace
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
COMMIT_MESSAGE: ${{ join(github.event.commits.*.message, '<br>') }}
- uses: sarisia/actions-status-discord@v1
if: success()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
nodetail: true
title: New build of PurpurClient is ready!
description: |
Version ${{ env.minecraft_version }} build ${{ github.run_number }}
Click [here](https://modrinth.com/mod/purpurclient) to download!