diff --git a/.github/workflows/packsquash.yml b/.github/workflows/packsquash.yml new file mode 100644 index 0000000..2f3accf --- /dev/null +++ b/.github/workflows/packsquash.yml @@ -0,0 +1,25 @@ +name: Optimize resource pack +on: + push: + tags: + - '**' +jobs: + packsquash: + name: Optimize resource pack + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 # A non-shallow repository clone is required + - name: Run PackSquash + uses: ComunidadAylas/PackSquash-action@v4 + with: + packsquash_version: latest + options: | + pack_directory = '.' + output_file_path = '/tmp/pack.zip' + - name: Create release + uses: softprops/action-gh-release@v2 + with: + files: /tmp/pack.zip \ No newline at end of file