mirror of
https://github.com/Nostalgica-Reverie/Content-Monorepo.git
synced 2026-05-09 00:24:15 +00:00
feat: simply legacy builds
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
name: RC-Lite Builds
|
name: Simply Legacy Builds
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
paths:
|
paths:
|
||||||
- 'versions/vanilla/src/re-console-lite/curseforge/**'
|
- 'versions/vanilla/src/simply-legacy/modrinth/**'
|
||||||
- 'versions/vanilla/src/re-console-lite/modrinth/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
paths:
|
paths:
|
||||||
- 'versions/vanilla/src/re-console-lite/curseforge/**'
|
- 'versions/vanilla/src/simply-legacy/modrinth/**'
|
||||||
- 'versions/vanilla/src/re-console-lite/modrinth/**'
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -20,71 +18,17 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# modrinth
|
# modrinth
|
||||||
- version: "1.20.1"
|
- version: "1.21.10"
|
||||||
loader: "fabric"
|
loader: "fabric"
|
||||||
platform: "modrinth"
|
platform: "modrinth"
|
||||||
file_ext: "mrpack"
|
file_ext: "mrpack"
|
||||||
- version: "1.20.4"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "modrinth"
|
|
||||||
file_ext: "mrpack"
|
|
||||||
- version: "1.21.1"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "modrinth"
|
|
||||||
file_ext: "mrpack"
|
|
||||||
- version: "1.21.3"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "modrinth"
|
|
||||||
file_ext: "mrpack"
|
|
||||||
- version: "1.21.4"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "modrinth"
|
|
||||||
file_ext: "mrpack"
|
|
||||||
- version: "1.21.5"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "modrinth"
|
|
||||||
file_ext: "mrpack"
|
|
||||||
- version: "1.21.8"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "modrinth"
|
|
||||||
file_ext: "mrpack"
|
|
||||||
# curseforge
|
|
||||||
- version: "1.20.1"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "curseforge"
|
|
||||||
file_ext: "zip"
|
|
||||||
- version: "1.20.4"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "curseforge"
|
|
||||||
file_ext: "zip"
|
|
||||||
- version: "1.21.1"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "curseforge"
|
|
||||||
file_ext: "zip"
|
|
||||||
- version: "1.21.3"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "curseforge"
|
|
||||||
file_ext: "zip"
|
|
||||||
- version: "1.21.4"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "curseforge"
|
|
||||||
file_ext: "zip"
|
|
||||||
- version: "1.21.5"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "curseforge"
|
|
||||||
file_ext: "zip"
|
|
||||||
- version: "1.21.8"
|
|
||||||
loader: "fabric"
|
|
||||||
platform: "curseforge"
|
|
||||||
file_ext: "zip"
|
|
||||||
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
commit_sha: ${{ steps.vars.outputs.commit_sha }}
|
commit_sha: ${{ steps.vars.outputs.commit_sha }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PACK_NAME: Re-Console-Lite
|
PACK_NAME: Simply-Legacy
|
||||||
OUTPUT: artifacts
|
OUTPUT: artifacts
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -126,11 +70,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build ${{ matrix.version }}-${{ matrix.loader }}-${{ matrix.platform }}
|
- name: Build ${{ matrix.version }}-${{ matrix.loader }}-${{ matrix.platform }}
|
||||||
run: |
|
run: |
|
||||||
mkdir RC-Lite-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp
|
mkdir Simply-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp
|
||||||
cp -r ./versions/vanilla/src/re-console-lite/${{ matrix.platform }}/${{ matrix.loader }}/${{ matrix.version }}/* ./RC-Lite-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
cp -r ./versions/vanilla/src/re-console-lite/${{ matrix.platform }}/${{ matrix.loader }}/${{ matrix.version }}/* ./Simply-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
||||||
cp ./LICENSE ./RC-Lite-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
cp ./LICENSE ./Simply-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
||||||
cp ./README.md ./RC-Lite-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
cp ./README.md ./Simply-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
||||||
cd ./RC-Lite-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
cd ./Simply-${{ matrix.platform }}-${{ matrix.loader }}-${{ matrix.version }}-temp/
|
||||||
packwiz refresh
|
packwiz refresh
|
||||||
mkdir -p ../$OUTPUT
|
mkdir -p ../$OUTPUT
|
||||||
packwiz ${{ matrix.platform }} export --output ../${OUTPUT}/${PACK_NAME}-${{ matrix.version }}-${{ matrix.loader }}-dev-${{ matrix.platform }}-${{ env.COMMIT_SHORT_SHA }}.${{ matrix.file_ext }}
|
packwiz ${{ matrix.platform }} export --output ../${OUTPUT}/${PACK_NAME}-${{ matrix.version }}-${{ matrix.loader }}-dev-${{ matrix.platform }}-${{ env.COMMIT_SHORT_SHA }}.${{ matrix.file_ext }}
|
||||||
@@ -138,7 +82,7 @@ jobs:
|
|||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "Re-Console-Lite-${{ matrix.version }}-${{ matrix.loader }}-${{ matrix.platform }}-dev-${{ env.COMMIT_SHORT_SHA }}"
|
name: "Simply-Legacy-${{ matrix.version }}-${{ matrix.loader }}-${{ matrix.platform }}-dev-${{ env.COMMIT_SHORT_SHA }}"
|
||||||
path: artifacts
|
path: artifacts
|
||||||
|
|
||||||
combine:
|
combine:
|
||||||
@@ -159,5 +103,5 @@ jobs:
|
|||||||
- name: Upload combined artifacts
|
- name: Upload combined artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: "Re-Console-Lite-dev-${{ needs.build.outputs.commit_sha }}"
|
name: "Simply-Legacy-dev-${{ needs.build.outputs.commit_sha }}"
|
||||||
path: combined-artifacts
|
path: combined-artifacts
|
||||||
Reference in New Issue
Block a user