-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
100 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Resuable | Configs Upload | ||
|
||
on: | ||
workflow_call: {} | ||
|
||
jobs: | ||
item-models-upload: | ||
name: Upload item models file | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Setup - Checkout Repository | ||
uses: actions/checkout@v4 | ||
- | ||
name: Compress - Item Models | ||
run: | | ||
zip -j9 item-models.zip Resourcepack/item-models.yml | ||
- | ||
name: Artifact - Upload Item Models | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: config-item-models | ||
path: item-models.zip | ||
|
||
ia-config-upload: | ||
name: Upload item models file | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Setup - Checkout Repository | ||
uses: actions/checkout@v4 | ||
- | ||
name: Compress - IA Config | ||
run: | | ||
zip -r9 ia-addons.zip contents/ | ||
mv ia-addons.zip ../ | ||
working-directory: Resourcepack | ||
- | ||
name: Artifact - Upload Item Models | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: config-ia | ||
path: ia-addons.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,21 +22,18 @@ jobs: | |
with: | ||
path: workdir | ||
merge-multiple: true | ||
|
||
- | ||
name: Name - Fix naming | ||
run: | | ||
mv workdir/pack.zip Slimefun-ResourcePack.zip | ||
mv workdir/item-models.yml item-models.yml | ||
mv workdir/*.zip . | ||
ls -alh | ||
- | ||
name: DEBUG Git Version - Current Version | ||
id: git_version | ||
run: | | ||
echo "version=git-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | ||
echo "git-${GITHUB_SHA::7}" | ||
- | ||
name: Modrinth - Relase Beta | ||
uses: Kir-Antipov/[email protected] | ||
|
@@ -46,7 +43,9 @@ jobs: | |
version: ${{ steps.git_version.outputs.version }} | ||
version-type: beta | ||
loaders: minecraft | ||
game-versions: ">=1.19.4" | ||
game-versions: ">=1.19" | ||
files: | | ||
Slimefun-ResourcePack.zip | ||
item-models.zip | ||
ia-addons.zip | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Resuable | Version Maker | ||
|
||
on: | ||
workflow_call: {} | ||
|
||
jobs: | ||
version_maker: | ||
name: Make Version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Setup - Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Git Version - Current Version | ||
id: git_version | ||
run: | | ||
echo "version=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | ||
- | ||
name: Setup - Decompress and Move | ||
run: | | ||
mkdir pack | ||
cd workdir | ||
unzip generated.zip | ||
mv assets pack.mcmeta pack.png ../pack | ||
- | ||
name: Clean - Remove unnecessary files | ||
run: | | ||
rm -r assets/_iainternal | ||
rm -r assets/minecraft/blockstates | ||
rm -r assets/minecraft/font | ||
rm -r assets/minecraft/lang | ||
rm -r assets/minecraft/models/block | ||
rm -r assets/minecraft/models/item/base | ||
rm -r assets/minecraft/shaders | ||
rm -r assets/minecraft/textures | ||
working-directory: pack | ||
- | ||
name: PackSquash - Optimize It! | ||
uses: ComunidadAylas/PackSquash-action@v4 | ||
with: | ||
packsquash_version: latest-unstable | ||
artifact_name: Slimefun-ResourcePack | ||
options: | | ||
pack_directory = 'pack' | ||
allow_mods = [ 'OptiFine' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters