-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 885 Bytes
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }}