forked from BanManagement/BanManager
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.29 KB
/
release.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
37
38
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