Update .github/workflows/packsquash.yml
All checks were successful
Optimize resource pack / Optimize resource pack (push) Successful in 9m59s
All checks were successful
Optimize resource pack / Optimize resource pack (push) Successful in 9m59s
This commit is contained in:
parent
d020dd3e01
commit
00512dd1fb
33
.github/workflows/build-and-upload.yml
vendored
33
.github/workflows/build-and-upload.yml
vendored
@ -1,33 +0,0 @@
|
||||
name: CI/CD for Minecraft Resource Pack
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Run PackSquash
|
||||
uses: ComunidadAylas/PackSquash-action@v4
|
||||
with:
|
||||
packsquash_version: latest
|
||||
|
||||
- name: Zip the resource pack
|
||||
run: zip -r resource-pack.zip ./*
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: resource-pack
|
||||
path: resource-pack.zip
|
33
.github/workflows/packsquash.yml
vendored
Normal file
33
.github/workflows/packsquash.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: Optimize resource pack
|
||||
on: [push]
|
||||
# This permissions section explicitly gives the workflow permission to create releases.
|
||||
# Most of the time it's not needed to set it, as the default GITHUB_TOKEN permissions
|
||||
# are permissive enough, but that's not always the case
|
||||
permissions:
|
||||
contents: write
|
||||
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
|
Loading…
Reference in New Issue
Block a user