-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: duplicate name * ci: small update release naming * ci: update beta release workflow * ci: fix wrong running * fix: new line on pack description
- Loading branch information
Showing
8 changed files
with
92 additions
and
72 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,24 @@ | ||
name: Resuable | ChangeLog Generator | ||
|
||
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 | ||
|
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 |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
debug: | ||
type: boolean | ||
required: false | ||
pack_format_version_str: | ||
type: string | ||
required: true | ||
secrets: | ||
RCON_PASSWORD: | ||
required: true | ||
|
@@ -26,7 +29,6 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- | ||
name: Setup - S3cmd Cli Tool | ||
uses: s3-actions/[email protected] | ||
|
@@ -35,7 +37,6 @@ jobs: | |
region: "sgp1" | ||
access_key: ${{ secrets.S3_ACCESS_KEY }} | ||
secret_key: ${{ secrets.S3_SECRET_KEY }} | ||
|
||
- | ||
name: Setup - mcrcon | ||
run: | | ||
|
@@ -45,13 +46,15 @@ jobs: | |
tar xzvf mcrcon.tar.gz | ||
rm LICENSE mcrcon.tar.gz | ||
working-directory: .github | ||
|
||
- | ||
name: S3 - Download Plugins | ||
run: | | ||
mkdir external | ||
s3cmd get s3://${{ secrets.S3_BUCKET_NAME }}/ItemsAdder.jar external/ItemsAdder.jar | ||
- | ||
name: Setup - Version Replace | ||
run: | | ||
sed -i 's/${VERSION_PLACEHOLDER}/${{ inputs.pack_format_version_str }}/' Resourcepack/contents/_iainternal/resourcepack/pack.mcmeta | ||
- | ||
name: Setup - IA Minecraft Server | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,9 @@ on: | |
type: string | ||
required: false | ||
default: "beta" | ||
version: | ||
type: string | ||
required: true | ||
secrets: | ||
MODRINTH_TOKEN: | ||
required: true | ||
|
@@ -28,19 +31,13 @@ jobs: | |
mv workdir/pack.zip Slimefun-ResourcePack.zip | ||
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] | ||
with: | ||
modrinth-id: TznkVJky | ||
modrinth-featured: false | ||
version: ${{ steps.git_version.outputs.version }} | ||
version: ${{ inputs.version }} | ||
version-type: beta | ||
loaders: minecraft | ||
game-versions: ">=1.19" | ||
|
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 |
---|---|---|
@@ -1,48 +1,42 @@ | ||
name: Resuable | Version Maker | ||
|
||
on: | ||
workflow_call: {} | ||
workflow_call: | ||
inputs: | ||
release_type: | ||
type: string | ||
required: false | ||
default: "beta" | ||
outputs: | ||
version_name: | ||
description: "The version name (ex: git-abcdef or v1.0.0 )" | ||
value: ${{ jobs.version_maker.outputs.version_name }} | ||
pack_version_name: | ||
description: "The pack format will use name (ex: Beta git-abcdef or Release v1.0.0)" | ||
value: ${{ jobs.version_maker.outputs.pack_version_name }} | ||
|
||
jobs: | ||
version_maker: | ||
name: Make Version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version_name: ${{ steps.git_version.outputs.short_sha }} | ||
pack_version_name: ${{ steps.pack_version_name.outputs.version_name }} | ||
steps: | ||
- | ||
name: Setup - Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Git Version - Current Version | ||
name: Version - Get Current Version | ||
id: git_version | ||
run: | | ||
echo "version=${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | ||
echo "short_sha=git-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" | ||
- | ||
name: Setup - Decompress and Move | ||
name: Pack Format - Version Name | ||
id: pack_version_name | ||
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' ] | ||
if [ "${{ inputs.release_type }}" == "beta" ]; then | ||
echo "version_name=§dBeta §f${{ steps.git_version.outputs.short_sha }}" >> "$GITHUB_OUTPUT" | ||
elif [ "${{ inputs.release_type }}" == "release" ]; then | ||
echo "version_name=§bRelease §fvABC?" >> "$GITHUB_OUTPUT" | ||
fi |
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