-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_#283_server
- Loading branch information
Showing
44 changed files
with
280 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Definisce il nome del workflow: | ||
name: Create Builds | ||
|
||
# Trigger del workflow quando viene modificato il file delle versioni: | ||
on: | ||
push: | ||
paths: | ||
- 'datapacks/Skyblock CE datapacks/data/skyblock/function/versions/changelog/building_version.json' | ||
|
||
jobs: | ||
# Job per controllare quali versioni sono state modificate: | ||
check_changes: | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
release_changed: ${{ steps.check.outputs.release_changed }} | ||
nightly_changed: ${{ steps.check.outputs.nightly_changed }} | ||
steps: | ||
# Checkout del repository: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
# Script per verificare i cambiamenti nelle versioni: | ||
- name: Check changes | ||
id: check | ||
shell: bash | ||
run: | | ||
# Definisce il percorso del file da controllare: | ||
FILE="datapacks/Skyblock CE datapacks/data/skyblock/function/versions/changelog/building_version.json" | ||
# Gestisce il caso del primo commit: | ||
if ! git rev-parse HEAD^ >/dev/null 2>&1; then | ||
echo "First commit - setting both as changed" | ||
echo "release_changed=true" >> "$GITHUB_OUTPUT" | ||
echo "nightly_changed=true" >> "$GITHUB_OUTPUT" | ||
exit 0 | ||
fi | ||
# Confronta le versioni Release tra commit precedente e attuale: | ||
OLD_RELEASE=$(git show HEAD^:"$FILE" | grep '"Release Building"' || echo "") | ||
NEW_RELEASE=$(git show HEAD:"$FILE" | grep '"Release Building"' || echo "") | ||
OLD_NIGHTLY=$(git show HEAD^:"$FILE" | grep '"Nightly Building"' || echo "") | ||
NEW_NIGHTLY=$(git show HEAD:"$FILE" | grep '"Nightly Building"' || echo "") | ||
# Imposta i flag per i cambiamenti Release: | ||
if [ "$OLD_RELEASE" != "$NEW_RELEASE" ]; then | ||
echo "release_changed=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "release_changed=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
# Imposta i flag per i cambiamenti Nightly: | ||
if [ "$OLD_NIGHTLY" != "$NEW_NIGHTLY" ]; then | ||
echo "nightly_changed=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "nightly_changed=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
# Job per creare il build Release: | ||
release_build: | ||
needs: check_changes | ||
if: needs.check_changes.outputs.release_changed == 'true' | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
# Checkout del repository: | ||
- uses: actions/checkout@v4 | ||
|
||
# Carica i file della Release come artifact: | ||
- name: Upload release content | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Skyblock_CE_Latest | ||
# Include tutti i file tranne quelli specificati: | ||
path: | | ||
. | ||
!.git/ | ||
!.github/ | ||
!.gitignore | ||
!Resources Pack/ | ||
!crowdin.yml | ||
!spyglass.json | ||
!*.zip | ||
!.DS_Store | ||
if-no-files-found: error | ||
retention-days: 60 | ||
|
||
# Job per creare il build Nightly: | ||
nightly_build: | ||
needs: check_changes | ||
if: needs.check_changes.outputs.nightly_changed == 'true' | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
# Checkout del repository: | ||
- uses: actions/checkout@v4 | ||
|
||
# Carica i file Nightly come artifact: | ||
- name: Upload nightly content | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Skyblock_CE_Nightly_Snapshots | ||
# Include tutti i file tranne quelli specificati: | ||
path: | | ||
. | ||
!.git/ | ||
!.github/ | ||
!.gitignore | ||
!Resources Pack/ | ||
!crowdin.yml | ||
!spyglass.json | ||
!*.zip | ||
!.DS_Store | ||
if-no-files-found: error | ||
retention-days: 60 |
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+5.92 MB
...lock Classic Edition Portable Default.zip → ...ble/Skyblock Classic Edition Portable.zip
Binary file not shown.
Binary file added
BIN
+8.43 MB
.worlds/.worlds-release/release_portable/skyblock-classic-edition-portable-1.21_JE-4a.jar
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- per le lingue custom: aggiungere in Crowdin | ||
- aggiungere ISO gia corretto, fa gia tutto da solo | ||
- per le lingue custom: aggiungere in Crowdin | ||
- aggiungere ISO gia corretto, fa gia tutto da solo | ||
|
||
|
||
NON TOCCARE MAI crowdin.yml |
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
Oops, something went wrong.