forked from Slimefun/Slimefun4
-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (30 loc) · 956 Bytes
/
publish-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: Publish build
on:
push:
branches:
- master
- stable
jobs:
publish:
name: Upload build
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[ci skip]') == false
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Build with Maven
run: mvn clean package
- name: Upload to Blob Builds
uses: WalshyDev/blob-builds/gh-action@f3da5ce7b7e2b70eb963e0c0014677b3d78c10fa
with:
project: Slimefun4
releaseChannel: ${{ github.ref == 'refs/heads/master' && 'Dev' || 'RC' }}
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: './target/Slimefun v4.9-UNOFFICIAL.jar'
releaseNotes: ${{ github.event.head_commit.message }}