From a8a4ae91cf9c6db4e0349dbecab729b1ac534089 Mon Sep 17 00:00:00 2001 From: Daniel Walsh Date: Sun, 25 Feb 2024 16:41:25 +0000 Subject: [PATCH] [ci skip] Add blob builds workflow (#4145) --- .github/workflows/publish-build.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/publish-build.yml diff --git a/.github/workflows/publish-build.yml b/.github/workflows/publish-build.yml new file mode 100644 index 000000000..fb7c0828f --- /dev/null +++ b/.github/workflows/publish-build.yml @@ -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 }}