-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.07 KB
/
publish.yml
File metadata and controls
46 lines (38 loc) · 1.07 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
43
44
45
46
name: Publish Multi-Branch Release
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
build-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [1165, 1201, 1211]
steps:
- name: Checkout target branch
uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 21
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }}
- uses: gradle/actions/wrapper-validation@v3
- name: Build and Publish
run: |
chmod +x gradlew
./gradlew build publishCurseForge publish --stacktrace -Porg.gradle.parallel.threads=4
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}