-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (39 loc) · 1.24 KB
/
deploy_all.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
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy All
on: workflow_dispatch
env:
CF_APIKEY: ${{ secrets.CF_APIKEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: update cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/unimined
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up Gradle JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew --build-cache --info --stacktrace build
- name: Merge Jars with Gradle
run: ./gradlew --build-cache --info --stacktrace fusejars
- name: Deploy with Gradle
run: ./gradlew --build-cache --info --stacktrace :common:publishMod
- uses: actions/upload-artifact@v4
with:
name: artifacts
path: build/libs/*.jar
- name: stop daemon
run: ./gradlew --stop