Skip to content

Commit

Permalink
Add blob builds workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev committed Feb 25, 2024
1 parent 20486fb commit be2df11
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-build.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}

0 comments on commit be2df11

Please sign in to comment.