Skip to content

Commit

Permalink
Create packsquash.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
emortaldev authored Sep 22, 2024
1 parent 2a200d8 commit 048cb41
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/packsquash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Optimize resource pack"

on:
push:
branches:
- "master"

jobs:
pre-release:
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/[email protected]
with:
packsquash_version: latest
options: |
pack_directory = 'resourcepack'
zip_spec_conformance_level = 'high'
output_file_path = '/tmp/pack.zip'
- name: Tag and create release
uses: softprops/action-gh-release@v2
with:
tag_name: latest
files: /tmp/pack.zip

0 comments on commit 048cb41

Please sign in to comment.