Changed the doohickey to only happen on tag push
All checks were successful
Optimize resource pack / Optimize resource pack (push) Successful in 9m47s
All checks were successful
Optimize resource pack / Optimize resource pack (push) Successful in 9m47s
This commit is contained in:
parent
00512dd1fb
commit
aecc1a82fd
18
.github/workflows/packsquash.yml
vendored
18
.github/workflows/packsquash.yml
vendored
@ -1,10 +1,8 @@
|
|||||||
name: Optimize resource pack
|
name: Optimize resource pack
|
||||||
on: [push]
|
on:
|
||||||
# This permissions section explicitly gives the workflow permission to create releases.
|
push:
|
||||||
# Most of the time it's not needed to set it, as the default GITHUB_TOKEN permissions
|
tags:
|
||||||
# are permissive enough, but that's not always the case
|
- '**'
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
jobs:
|
jobs:
|
||||||
packsquash:
|
packsquash:
|
||||||
name: Optimize resource pack
|
name: Optimize resource pack
|
||||||
@ -19,15 +17,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
packsquash_version: latest
|
packsquash_version: latest
|
||||||
options: |
|
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 = '.'
|
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'
|
output_file_path = '/tmp/pack.zip'
|
||||||
- name: Tag and create release
|
- name: Create release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: action-v${{ github.run_number }}
|
|
||||||
files: /tmp/pack.zip
|
files: /tmp/pack.zip
|
Loading…
Reference in New Issue
Block a user