-
Notifications
You must be signed in to change notification settings - Fork 192
36 lines (29 loc) · 993 Bytes
/
publish.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: Release CI
on:
release:
types:
- published
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Upload assets to CurseForge
run: ./gradlew build
env:
BUILD_RELEASE: ${{ github.event.prerelease == false }}
- name: Upload assets to GitHub
uses: AButler/upload-release-assets@v3.0
with:
files: 'build/libs/*.jar;!build/libs/*-dev.jar;LICENSE'
repo-token: ${{ secrets.GITHUB_TOKEN }}