Skip to content

small fixes in ci

small fixes in ci #54

Workflow file for this run

name: Java CI with Gradle
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17 ]
fail-fast: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up JDK ${{ matrix.java }}
uses: actions/[email protected]
with:
distribution: adopt
java-version: ${{ matrix.java }}
- name: Build ShopMC
run: ./gradlew build
- name: Upload ShopMC
uses: actions/[email protected]
with:
name: ShopMC Built On ${{ matrix.java }} JDK
path: "Spigot/build/libs/Itemszop*.jar"
- name: Upload ShopMC
uses: actions/[email protected]
with:
name: ShopMC Built On ${{ matrix.java }} JDK
path: "BungeeCord/build/libs/Itemszop*.jar"
- name: Upload ShopMC
uses: actions/[email protected]
with:
name: ShopMC Built On ${{ matrix.java }} JDK
path: "Velocity/build/libs/Itemszop*.jar"
- uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: dev-build-jdk-${{ matrix.java }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release the build
uses: ncipollo/release-action@v1
with:
artifacts: "Spigot/build/libs/Itemszop*.jar"
body: ${{ join(github.event.commits.*.message, '\n') }}
prerelease: true
name: JDK ${{ matrix.java }} Dev-build
tag: dev-build-jdk-${{ matrix.java }}
- name: Release the build
uses: ncipollo/release-action@v1
with:
artifacts: "BungeeCord/build/libs/Itemszop*.jar"
body: ${{ join(github.event.commits.*.message, '\n') }}
prerelease: true
name: JDK ${{ matrix.java }} Dev-build
tag: dev-build-jdk-${{ matrix.java }}
- name: Release the build
uses: ncipollo/release-action@v1
with:
artifacts: "Velocity/build/libs/Itemszop*.jar"
body: ${{ join(github.event.commits.*.message, '\n') }}
prerelease: true
name: JDK ${{ matrix.java }} Dev-build
tag: dev-build-jdk-${{ matrix.java }}