v0.1.12 #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CD with Gradle | |
on: | |
release: | |
types: [ created ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: JDK21 Setup | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Gradle Setup | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Gradle Build and Publish | |
run: ./gradlew publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload Release Assets | |
uses: AButler/[email protected] | |
with: | |
# Separate multiple files with semicolons (;) | |
files: "playtimestats-plugin-bukkit/build/libs/playtimestats-plugin-bukkit-*.jar" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |