forked from NazrinNya/ServerManagementPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.05 KB
/
gradle.yml
File metadata and controls
42 lines (37 loc) · 1.05 KB
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
37
38
39
40
41
42
name: Java CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "*" ]
jobs:
buildJar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build plugin jar
run: ./gradlew jar
- name: Gradlew executable
run: chmod +x ./gradlew
- name: Upload built jar file
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: build/libs/${{ github.event.repository.name }}.jar
- name: Create Release on GitHub
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: "v${{ github.run_number }}"
name: "Release v${{ github.run_number }}"
body: "Automated release of version v${{ github.run_number }}."
draft: false
prerelease: false
files: build/libs/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}