Skip to content

Commit

Permalink
Update build script to include overlay folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschipcraft committed May 25, 2024
1 parent 4053f45 commit 4c50d9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ jobs:
uses: montudor/action-zip@v1
if: steps.check_datapack_folder.outputs.files_exists == 'true'
with:
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" -r data pack.mcmeta pack.png LICENSE README.md
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-datapack.zip" -r data overlay_* pack.mcmeta pack.png LICENSE README.md
- name: Create mod jar file
uses: montudor/action-zip@v1
if: steps.check_mod_folder.outputs.files_exists == 'true'
with:
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar" -r data assets META-INF net fabric.mod.json pack.mcmeta pack.png LICENSE README.md
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-mod.jar" -r data overlay_* assets META-INF net fabric.mod.json pack.mcmeta pack.png LICENSE README.md
- name: Create asset pack zip file
uses: montudor/action-zip@v1
if: steps.check_assets_folder.outputs.files_exists == 'true'
with:
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-resourcepack.zip" -r assets pack.mcmeta pack.png LICENSE README.md
args: zip -qq "${{ github.event.repository.name }}-v${{ github.event.inputs.tag }}-mc${{ github.event.inputs.mc_version }}-resourcepack.zip" -r assets overlay_* pack.mcmeta pack.png LICENSE README.md

# Upload
- name: Upload data pack version to Modrinth
Expand Down Expand Up @@ -140,6 +140,8 @@ jobs:
version: ${{ github.event.inputs.tag }}
changelog-file: CHANGELOG.*

loaders: |
datapack
files: |
./${{ github.event.repository.name }}-*.zip
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Hotfix for v1.8 - the data pack now actually includes the overlays for compatibility with 1.20.6 (closes [#34](https://github.com/Tschipcraft/dynamiclights/issues/34))

- **Update to Minecraft 1.20.6 🐺**
These changes utilize overlays to maintain backwards compatibility
- Switched to testing components rather than NBT in predicates
Expand Down

0 comments on commit 4c50d9b

Please sign in to comment.