1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[ci skip] Add blob builds workflow (#4145)

This commit is contained in:
Daniel Walsh 2024-02-25 16:41:25 +00:00 committed by GitHub
parent d528884609
commit a8a4ae91cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

36
.github/workflows/publish-build.yml vendored Normal file
View File

@ -0,0 +1,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/setup-java@v3.13.0
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@f3da5ce
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 }}