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:
parent
d528884609
commit
a8a4ae91cf
36
.github/workflows/publish-build.yml
vendored
Normal file
36
.github/workflows/publish-build.yml
vendored
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user