Skip to content

v1.14

v1.14 #18

Workflow file for this run

name: Java CI with Gradle
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -x test
- name: Upload BanManagerBukkit.jar to the GitHub release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: bukkit/build/libs/BanManagerBukkit.jar
asset_name: BanManagerBukkit.jar
asset_content_type: application/java-archive
- name: Upload BanManagerBungeeCord.jar to the GitHub release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: bungee/build/libs/BanManagerBungeeCord.jar
asset_name: BanManagerBungeeCord.jar
asset_content_type: application/java-archive