-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (80 loc) · 2.2 KB
/
build.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
on:
push:
paths:
- .version
workflow_dispatch:
inputs:
skip-build:
description: "Skip build step"
required: false
default: "false"
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
# Install NodeJS, pnpm, and Go
- uses: actions/setup-node@v3
with:
node-version: latest
name: Install NodeJS
- uses: actions/setup-go@v4
with:
go-version: stable
name: Install Go
- uses: pnpm/action-setup@v2
with:
version: latest
name: Install PNPM
# Install packwiz
- run: go install github.com/packwiz/packwiz@latest
name: Install Packwiz
# Install pnpm dependencies
- run: pnpm install --no-frozen-lockfile
name: Install dependencies
# Run scripts
- run: pnpm build
if: ${{ github.event.inputs.skip-build != 'true' }}
name: Build modpack
- run: pnpm run build:generate
if: ${{ github.event.inputs.skip-build == 'true' }}
name: Generate modpack
- uses: stefanzweifel/git-auto-commit-action@v4
# Get version
- run: echo "MODPACK_VERSION=$(cat .version)" >> $GITHUB_OUTPUT
name: Get version
id: version
- run: mv out/*1.19.3\ via\ Quilt.mrpack ./
name: Rename main file
# Release artifacts
- uses: Kir-Antipov/[email protected]
with:
modrinth-id: Fe2hWp6Z
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
modrinth-unfeature-mode: subset
github-generate-changelog: true
files-primary: "*.mrpack"
# All the non-1.19.3 files are uploaded as secondary files
files-secondary: out/*.mrpack
loaders: |
quilt
fabric
version: ${{ steps.version.outputs.MODPACK_VERSION }}
game-versions: |
1.15.2
1.16.1
1.16.2
1.16.3
1.16.4
1.16.5
1.17
1.17.1
1.18
1.18.1
1.18.2
1.19
1.19.1
1.19.2
1.19.3
1.19.4