-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.4 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Optimize resource pack
on: [push]
permissions:
contents: write
jobs:
packsquash:
name: Release 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 /pack directory.
# pack_directory = './pack'
# # 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'
# # Don't touch shaders
# shader_source_transformation_strategy = 'keep_as_is'
- name: Install zip
uses: montudor/action-zip@v1
- name: Zip pack
run: zip -qq -r /pack.zip -i ./pack
working-directory: /
- name: Tag and create release
uses: softprops/action-gh-release@v2
with:
tag_name: action-v${{ github.run_number }}
files: ./pack.zip