forked from HMJosh/DeathMessages
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (39 loc) · 1.25 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
37
38
39
40
41
42
43
name: Build DeathMessages
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: "github.actor != 'dependabot[bot]'"
steps:
- uses: actions/checkout@main
- name: Set up JDK 17
uses: actions/setup-java@main
with:
java-version: 17
distribution: temurin
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build
run: ./gradlew clean build
- name: Release DeathMessages
if: "contains(github.event.commits[0].message, '[Release]')"
uses: marvinpinto/action-automatic-releases@master
with:
title: "DeathMessages v1.4.18"
automatic_release_tag: "1.4.18"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: "build/libs/DeathMessages-*-all.jar"
prerelease: false
- name: Upload DeathMessages DevBuild
#if: github.ref_name == 'nextgen'
uses: marvinpinto/action-automatic-releases@master
with:
title: "DeathMessages v1.4.18-SNAPSHOT"
automatic_release_tag: "dev-build"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
files: "build/libs/DeathMessages-*-all.jar"
prerelease: true