Skip to content

Merge pull request #4 from JustAHuman-xD/fix/bstats-and-wand-feature #13

Merge pull request #4 from JustAHuman-xD/fix/bstats-and-wand-feature

Merge pull request #4 from JustAHuman-xD/fix/bstats-and-wand-feature #13

Workflow file for this run

name: Deploy
on:
push:
branches: [ main ]
jobs:
publish:
name: Upload Release
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[ci skip]') == false
steps:
- uses: actions/checkout@v3
- name: Replace version
run: sed -i "s/UNOFFICIAL/$GITHUB_RUN_NUMBER/g" pom.xml
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Maven
run: mvn -B package
- name: Upload to Blob Builds
uses: WalshyDev/blob-builds/gh-action@main
with:
project: WorldEditSlimefun
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
file: ./target/WorldEditSlimefun.jar
releaseNotes: ${{ github.event.head_commit.message }}
- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: Build ${{ '#' }}${{ github.run_number }}
- name: Upload Module Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/WorldEditSlimefun.jar
asset_name: WorldEditSlimefun.jar
asset_content_type: application/jar