Skip to content

Commit

Permalink
Adhoc publish
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev committed Dec 8, 2023
1 parent 123e3b5 commit 6d4740d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
@@ -0,0 +1,49 @@
name: Publish build

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build'
required: true
default: 'master'
type: choice
options:
- master
- stable
releaseNotes:
description: 'Release notes'
required: true
default: 'No release notes provided'
type: string

jobs:
publish:
name: Upload build
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[ci skip]') == false

steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- 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/stable' && 'RC' || 'Dev' }}
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: './target/Slimefun v4.9-UNOFFICIAL.jar'
releaseNotes: ${{ inputs.releaseNotes }}

0 comments on commit 6d4740d

Please sign in to comment.