3
0
Mirror von https://github.com/TheSilentPro/HeadDB.git synchronisiert 2024-12-27 11:20:05 +01:00
HeadDB/.github/workflows/publish.yml
2024-03-02 21:17:17 +01:00

36 Zeilen
883 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@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Build with Maven
run: mvn -B package
- name: Upload build
uses: WalshyDev/blob-builds/gh-action@main
with:
project: HeadDB
releaseChannel: ${{ github.ref == 'refs/heads/release' && 'Release' || 'Dev' }}
apiToken: ${{ secrets.BUILDS_API_TOKEN }}
file: './target/HeadDB.jar'
releaseNotes: ${{ github.event.head_commit.message }}