-
Notifications
You must be signed in to change notification settings - Fork 45
142 lines (123 loc) · 5.1 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Build and Publish
on:
workflow_dispatch:
push:
branches: v2
jobs:
legacy_build:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
mc_version: [
'1.8.2-pre5,1.8.2-pre6,1.8.2-pre7',
'1.8.2,1.8.3,1.8.4,1.8.5,1.8.6,1.8.7,1.8.8,1.8.9',
"15w14a,1.RV-Pre1",
"15w31a,15w31b,15w31c,15w32a,15w32b,15w32c,15w33a",
"15w33b,15w33c,15w34a,15w34b,15w34c,15w34d,15w35a",
"15w35b,15w35c,15w35d,15w35e,15w36a,15w36b,15w36c",
"15w36d,15w37a,15w38a,15w38b,15w39a,15w39b,15w39c",
"15w40a,15w40b,15w41a,15w41b,15w42a,15w43a,15w43b",
"15w43c,15w44a,15w44b,15w45a,15w46a,15w47a,15w47b",
"15w47c,15w49a,15w49b,15w50a,15w51a,15w51b,16w02a",
"16w03a,16w04a,16w05a,16w05b,16w06a,16w07a,16w07b",
"1.9-pre1,1.9-pre2,1.9-pre3,1.9-pre4,1.9.1-pre1,1.9.1-pre2,1.9.1-pre3",
"1.9,1.9.1,1.9.2,1.9.3,1.9.4",
"16w14a,16w15a,16w15b,1.9.3-pre1,1.9.3-pre2,1.9.3-pre3",
"16w20a,16w21a,16w21b,1.10-pre1,1.10-pre2",
"1.10,1.10.1,1.10.2",
"16w32a,16w32b,16w33a,16w35a,16w36a,16w38a,16w39a",
"16w39b,16w39c,16w40a,16w41a,16w42a,16w43a,16w44a",
"1.11,1.11.1,1.11.2",
"1.11-pre1,16w50a",
"17w06a,17w13a,17w13b,17w14a,17w15a,17w16a,17w16b",
"17w17a,17w17b,17w18a,17w18b,17w31a",
"1.12-pre1,1.12-pre2,1.12-pre3,1.12-pre4,1.12-pre5,1.12-pre6,1.12-pre7",
"1.12,1.12.1,1.12.2",
"1.12.1-pre1,1.12.2-pre1,1.12.2-pre2",
"17w43a,17w43b,17w45a,17w45b,17w46a,17w47a,17w47b",
"17w48a,17w49a,17w49b,17w50a,18w01a,18w02a,18w03a",
"18w03b,18w05a,18w06a,18w07a,18w07b,18w07c,18w08a",
"18w08b,18w09a,18w10a,18w10b,18w10c,18w10d,18w11a",
"18w14a,18w14b,18w15a,18w16a",
# "18w19a",
"18w19b,18w20a",
"18w20b,18w20c,18w21a,18w21b,18w22a,18w22b,18w22c",
"1.13-pre1,1.13-pre2,1.13-pre3,1.13-pre4,1.13-pre5,1.13-pre6,1.13-pre7",
"1.13-pre8,1.13-pre9,1.13-pre10,1.13.1-pre1,1.13.1-pre2,1.13.2-pre1,1.13.2-pre2",
"1.13,1.13.1,1.13.2",
"18w30a,18w30b,18w31a,18w32a,18w33a,18w43a",
]
env:
MC_VERSION: ${{ matrix.mc_version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- run: python -u ./ci.py "$MC_VERSION" publishToLocalAndTest
# upstream_build:
# runs-on: ubuntu-latest
# continue-on-error: true
# strategy:
# matrix:
# mc_version: [
# # Upstream broken yarns
# "18w43b,18w43c,18w44a,18w45a,18w46a,18w47a,18w47b",
# "18w48a,18w48b,18w49a,18w50a,19w02a,19w03a,19w03b",
# "19w03c,19w04a,19w04b,19w05a,19w06a,19w07a,19w08a",
# "19w08b,19w09a,19w11a,19w11b,19w12a,19w12b,19w13a",
# "19w13b,19w14a,19w14b,3D Shareware v1.34",
#
# "1.14 Pre-Release 1,1.14 Pre-Release 2,1.14 Pre-Release 3,1.14 Pre-Release 4,1.14 Pre-Release 5,1.14.1 Pre-Release 1,1.14.1 Pre-Release 2",
#
# "1.14.2 Pre-Release 1,1.14.2 Pre-Release 2,1.14.2 Pre-Release 3,1.14.2 Pre-Release 4,1.14.3-pre1,1.14.3-pre2,1.14.3-pre3",
#
# "1.14.3-pre4,1.14.4-pre1,1.14.4-pre2,1.14.4-pre3,1.14.4-pre4,1.14.4-pre5,1.14.4-pre6,1.14.4-pre7",
#
## "1.14",
# "1.14.1,1.14.2,1.14.3,1.14.4",
# ]
# env:
# MC_VERSION: ${{ matrix.mc_version }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
# - uses: actions/setup-java@v4
# with:
# distribution: 'temurin' # See 'Supported distributions' for available options
# java-version: '17'
# - run: python -u ./ci.py "$MC_VERSION" publishToLocalAndTest
publish:
needs: [legacy_build]
runs-on: ubuntu-latest
strategy:
matrix:
mc_version: [
'1.8.2,1.8.3,1.8.4,1.8.5,1.8.6,1.8.7,1.8.8,1.8.9',
'1.9,1.9.1,1.9.2,1.9.3,1.9.4',
'1.10,1.10.1,1.10.2,1.11,1.11.1,1.11.2',
'1.12,1.12.1,1.12.2,1.13,1.13.1,1.13.2',
# Upstream broken yarns
# '1.14,1.14.1,1.14.2,1.14.3,1.14.4'
]
env:
MC_VERSION: ${{ matrix.mc_version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- run: python -u ./ci.py $MC_VERSION publish
env:
MAVEN_PUBLISH_CREDENTIALS: ${{ secrets.MAVEN_PUBLISH_CREDENTIALS }}