This commit is contained in:
parent
a00fa95fe8
commit
507cf33e5b
|
|
@ -1,25 +1,26 @@
|
|||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'overrides/*'
|
||||
- 'overrides/**/*'
|
||||
- 'modrinth.index.json'
|
||||
- '.forgejo/workflows/build.yaml'
|
||||
- '.forgejo/workflows/build-1.20.yaml'
|
||||
jobs:
|
||||
build-main:
|
||||
build-1.20:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: alpine:3.23.3
|
||||
image: debian:trixie-20260316-slim
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: apk -U add git nodejs openjdk21 tar zstd
|
||||
run: |
|
||||
apt update && apt install -y nodejs openjdk-21-jre-headless wget zstd
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Clone mod repo
|
||||
- name: Download mod
|
||||
run: |
|
||||
mkdir -p deps overrides/mods
|
||||
git clone --single-branch --branch main "https://patience.nearmisses.xyz/patience/mc_rebalance.git" "deps/mc_rebalance"
|
||||
wget --directory-prefix deps https://patience.nearmisses.xyz/patience/mc_rebalance/archive/main.tar.gz
|
||||
tar xf deps/main.tar.gz --directory deps/
|
||||
|
||||
- name: Restore cached files
|
||||
id: cache-files-restore
|
||||
|
|
@ -52,6 +53,7 @@ jobs:
|
|||
|
||||
- name: Save mod to pack
|
||||
run: |
|
||||
mkdir -p overrides/mods
|
||||
cp "deps/mc_rebalance/build/libs/mc_rebalance-"[0-9].[0-9].[0-9]".jar" "overrides/mods"
|
||||
|
||||
(cd "overrides/global_packs/required_data/mc_rebalance_datapack/assets/minecraft/lang/" && ./gen-langs.sh)
|
||||
|
|
@ -59,7 +61,7 @@ jobs:
|
|||
- name: Upload release
|
||||
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: MC_Rebalance_2.mrpack
|
||||
name: MC_Rebalance.mrpack
|
||||
path: |
|
||||
overrides
|
||||
modrinth.index.json
|
||||
Loading…
Reference in a new issue