3
0
Mirror von https://github.com/TheSilentPro/HeadDB.git synchronisiert 2024-12-29 12:20:06 +01:00
HeadDB/.github/workflows/publish.yml

36 Zeilen
883 B
YAML

2023-11-29 23:44:05 +01:00
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:
2024-03-02 21:17:17 +01:00
- uses: actions/checkout@v4
2023-11-29 23:44:05 +01:00
- name: Set up JDK 17
2024-03-02 21:17:17 +01:00
uses: actions/setup-java@v4
2023-11-29 23:44:05 +01:00
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Build with Maven
run: mvn -B package
2023-11-29 23:48:09 +01:00
- name: Upload build
2023-11-29 23:44:05 +01:00
uses: WalshyDev/blob-builds/gh-action@main
with:
2023-11-29 23:48:09 +01:00
project: HeadDB
2023-11-29 23:44:05 +01:00
releaseChannel: ${{ github.ref == 'refs/heads/release' && 'Release' || 'Dev' }}
apiToken: ${{ secrets.BUILDS_API_TOKEN }}
file: './target/HeadDB.jar'
releaseNotes: ${{ github.event.head_commit.message }}