Skip to content

handle early upstream broken yarn versions #516

handle early upstream broken yarn versions

handle early upstream broken yarn versions #516

Workflow file for this run

name: Build and Publish
on:
workflow_dispatch:
push:
branches: v2
jobs:
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",
"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.9.1-pre1","1.9.1-pre2","1.9.1-pre3","1.9.1",
"1.9.2",
"16w14a","16w15a","16w15b",
"1.9.3-pre1","1.9.3-pre2","1.9.3-pre3","1.9.3",
'1.9.4',
"1.RV-Pre1",
"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-pre1","1.11",
"16w50a",
"1.11.1",'1.11.2',
"17w06a","17w13a","17w13b","17w14a","17w15a","17w16a","17w16b","17w17a","17w17b","17w18a",
"17w18b",
"1.12-pre1","1.12-pre2","1.12-pre3","1.12-pre4","1.12-pre5","1.12-pre6","1.12-pre7",
"1.12",
"17w31a",
"1.12.1-pre1","1.12.1",
"1.12.2-pre1","1.12.2-pre2",'1.12.2',
"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", # MappingsPoet broken because of package-info files in this version
"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",
"18w30a","18w30b","18w31a","18w32a","18w33a",
"1.13.1-pre1","1.13.1-pre2","1.13.1",
"1.13.2-pre1","1.13.2-pre2",'1.13.2',
"18w43a",
# 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",
"3D Shareware v1.34",
"19w14a","19w14b",
"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.14.1 Pre-Release 1","1.14.1 Pre-Release 2",
"1.14.1",
"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.2",
"1.14.3-pre1","1.14.3-pre2","1.14.3-pre3","1.14.3-pre4",
"1.14.3",
"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.4"
]
env:
MC_VERSION: ${{ matrix.mc_version }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
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@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- run: python ./yarn.py $MC_VERSION publishToMavenLocal --stacktrace
- run: cd test-mod && ./gradlew build genSources
publish:
needs: 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@v3
- uses: actions/setup-python@v3
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@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- run: python ./yarn.py $MC_VERSION publish --stacktrace
env:
MAVEN_PUBLISH_CREDENTIALS: ${{ secrets.MAVEN_PUBLISH_CREDENTIALS }}