Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci Release Build #381

Merged
merged 32 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
03d2a88
test 1
Loweredgames Jan 15, 2025
29bc388
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:6.0.2testCI
Loweredgames Jan 15, 2025
72a56ae
Update create-release.yml
Loweredgames Jan 15, 2025
53b498b
Update building_version.json
Loweredgames Jan 15, 2025
95a419a
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:6.0.3testCI
Loweredgames Jan 15, 2025
c9912c6
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:6.0.4testCI
Loweredgames Jan 15, 2025
d9039c0
test release
Loweredgames Jan 15, 2025
bf164c5
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:6.0.5testCI
Loweredgames Jan 15, 2025
0346a44
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:6testCI
Loweredgames Jan 15, 2025
a4b52af
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:7testCI
Loweredgames Jan 15, 2025
e780a95
risolti avvisi
Loweredgames Jan 15, 2025
e27f3a6
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:8testCI
Loweredgames Jan 15, 2025
f6f37a3
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:9testCI
Loweredgames Jan 15, 2025
53d090a
aggiunto Nightly Building
Loweredgames Jan 15, 2025
8239ad7
Update building_version.json
Loweredgames Jan 15, 2025
c8e0588
Update nightly_release.yml
Loweredgames Jan 20, 2025
a2fba40
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.…
Loweredgames Jan 20, 2025
482da5a
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.…
Loweredgames Jan 20, 2025
0a067af
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:10testCI
Loweredgames Jan 20, 2025
5397f5f
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.…
Loweredgames Jan 20, 2025
fc27c5a
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:11testCI
Loweredgames Jan 20, 2025
21437d5
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.…
Loweredgames Jan 20, 2025
2001823
JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.…
Loweredgames Jan 20, 2025
9959911
Update building_version.json
Loweredgames Jan 20, 2025
fd736a8
Update building_version.json
Loweredgames Jan 20, 2025
8555220
Update build.yml
Loweredgames Jan 20, 2025
9e4fc1a
Update building_version.json
Loweredgames Jan 20, 2025
ac388e4
aggiornato il CI e rimossa la bossbar nighty
Loweredgames Jan 20, 2025
17451f5
Update build.yml
Loweredgames Jan 20, 2025
4184bcd
Update nightly_building.mcfunction
Loweredgames Jan 20, 2025
4bf1da2
Update building_version.json
Loweredgames Jan 20, 2025
d924957
Update building_version.json
Loweredgames Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions .github/workflows/build.yml
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function skyblock:structures/generated_biome
function skyblock_legacy:skyblock_legacy_setup
function skyblock:skyblock_test_setup
function skyblock:versions/changelog/building
function skyblock:versions/changelog/nightly_building
function skyblock:versions/version_pvn
function skyblock:versions/debug
function skyblock:multiplayer_setup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

"Release Versions": "6.0.0 [The Removal Update]",

"Release Building": "JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:6.0.0",
"Release Building": "JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:6.0.0_CItest-2",

"Nightly Building": "JE-1.21/1.21.1-6.0.0-Skyblock_Classic_Edition:NIGHTLY_BUILDING_20.01.2025.21900a_[main]",

"Data_pack": "TRUE",

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#Copyright (C) Loweredgames (Lorenzo Giannini)
#Contacted:<https://github.com/Loweredgames>
#This Source Code Form is subject to the terms of the License.
#NOT OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG STUDIO.
#READING THE COPYRIGHT (C): <https://www.minecraft.net/en-us/terms>


##NIGHTLY BUILDING VERSION SYSTEM (DA RIMUOVERE TUTTO NELLA 1.22)
bossbar set minecraft:nightly_building visible true
bossbar remove minecraft:nightly_building
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function skyblock_legacy:legacy_remove/legacy_structures_system

##Function Remove Test (DA RIMUOVERE IN FUTURO)
function skyblock_legacy:legacy_version
function skyblock_legacy:legacy_remove/nightly_building
function skyblock_legacy:legacy_remove/refactoring_scoreboard
function skyblock_legacy:legacy_remove/multiplayer_legacy
scoreboard objectives remove fix_end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function skyblock:structures/generated_biome
function skyblock_legacy:skyblock_legacy_setup
function skyblock:skyblock_test_setup
function skyblock:versions/changelog/building
function skyblock:versions/changelog/nightly_building
function skyblock:versions/version_pvn
function skyblock:versions/debug
function skyblock:multiplayer_setup
Expand Down