Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-28 20:00:10 +01:00
36 Zeilen
900 B
YAML
36 Zeilen
900 B
YAML
|
name: Publish build
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
- release
|
||
|
|
||
|
jobs:
|
||
|
publish:
|
||
|
name: Upload build
|
||
|
runs-on: ubuntu-latest
|
||
|
if: contains(github.event.head_commit.message, '[ci skip]') == false
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- 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/release' && 'Release' || 'Dev' }}
|
||
|
apiToken: ${{ secrets.BUILDS_API_TOKEN }}
|
||
|
file: './target/HeadDB.jar'
|
||
|
releaseNotes: ${{ github.event.head_commit.message }}
|