Skip to content

Commit

Permalink
Setup packsquash releases
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovdev authored Sep 28, 2024
1 parent 16884d1 commit 478e200
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/packsquash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Optimize resource pack
on: [push]
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: |
# Optimize the pack in the root repository directory.
# This is the default value for pack_directory when no PackSquash options are defined
pack_directory = '.'
# 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/pack.zip'
- name: Tag and create release
uses: softprops/action-gh-release@v2
with:
tag_name: action-v${{ github.run_number }}
files: /tmp/pack.zip

0 comments on commit 478e200

Please sign in to comment.