add slot overlays #241
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
name: Increment version number and export | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
VERSION: $(cat version) | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: "Increment Version" | |
run: echo "$(expr $(cat version) + 1)" > version | |
- name: "Update pack.mcmeta" | |
run: echo "{\"pack\":{\"pack_format\":11,\"description\":[\"\",{\"text\":\"Horizon's End\",\"color\":\"#88FF88\"},\" Resource Pack\",\"\nVersion $(cat version) \",{\"text\":\"/\",\"color\":\"#222222\"},\" horizonsend.net\"]}}" > pack.mcmeta | |
- name: "Commit updated Version and Meta" | |
uses: EndBug/[email protected] | |
with: | |
message: Increment Version Number | |
- name: Run PackSquash | |
uses: ComunidadAylas/PackSquash-action@v4 | |
with: | |
packsquash_version: latest | |
options: | | |
# Optimize the pack in the root repository directory. | |
# This is the default value for pack_directory when no PackSquash options are defined | |
pack_directory = '.' | |
zip_spec_conformance_level = 'high' | |
allow_mods = ['OptiFine'] | |
# Set a custom output file path to work with the generated ZIP file | |
# without needing to download its artifact in a separate step | |
output_file_path = '/tmp/HorizonsEndResourcePack.zip' | |
- name: "Save release number to environment variable" | |
run: echo "VERSION=$(cat version)" >> $GITHUB_ENV | |
- name: "Release" | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: /tmp/HorizonsEndResourcePack.zip | |
commit: main | |
tag: Version${{ env.VERSION }} |