-
Notifications
You must be signed in to change notification settings - Fork 529
49 lines (43 loc) · 1.23 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish build
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build'
required: true
default: 'master'
type: choice
options:
- master
- stable
releaseNotes:
description: 'Release notes'
required: true
default: 'No release notes provided'
type: string
jobs:
publish:
name: Upload build
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[ci skip]') == false
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Build with Maven
run: mvn -B package
- name: Upload to Blob Builds
uses: WalshyDev/blob-builds/gh-action@main
with:
project: Slimefun4
releaseChannel: ${{ github.ref == 'refs/heads/stable' && 'RC' || 'Dev' }}
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: './target/Slimefun v4.9-UNOFFICIAL.jar'
releaseNotes: ${{ inputs.releaseNotes }}