-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.29 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: auto-build
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- '1.14.4-fabric'
- '1.14.4-forge'
- '1.15.2-fabric'
- '1.15.2-forge'
- '1.16.5-fabric'
- '1.16.5-forge'
- '1.17.1-fabric'
- '1.17.1-forge'
- '1.18.2-fabric'
- '1.18.2-forge'
- '1.18.2-quilt'
- '1.19.2-fabric'
- '1.19.2-forge'
- '1.19.2-quilt'
- '1.19.3-fabric'
- '1.19.3-forge'
- '1.19.3-quilt'
- '1.19.4-fabric'
- '1.19.4-forge'
- '1.19.4-quilt'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Config Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Apply Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: $${{ runner.os }}-gradle
- name: Build
id: build
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MODRINTH_PROJECT_ID: ${{ secrets.MODRINTH_PROJECT_ID }}
run: ./gradlew :${{ matrix.project }}:build :${{ matrix.project }}:modrinth
continue-on-error: true