Add .gitea/workflows/zip_pack.yaml
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
name: Zip Pack
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- live
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy-prod:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: https://git.lzstealth.com/actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules : true
|
||||||
|
- name: Create Output Dir
|
||||||
|
run: mkdir output output/assets
|
||||||
|
- name: MC Meta from first
|
||||||
|
run: find $(ls -d ./packs/*|head -n 1) -maxdepth 1 -type f | xargs cp -t ./output
|
||||||
|
- name: Copying into one directory
|
||||||
|
run: cp -r --update=none ./packs/*/assets/* ./output/assets
|
||||||
|
- name: Zip Repository
|
||||||
|
run: cd output && zip -r "${{ gitea.workspace }}/${{ vars.FILE_NAME }}.zip" .
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S')"
|
||||||
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: https://git.lzstealth.com/actions/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
name: Resource Pack
|
||||||
|
body: |-
|
||||||
|
Resource Pack update ${{ steps.date.outputs.date }}
|
||||||
|
files: |-
|
||||||
|
${{ gitea.workspace }}/${{ vars.FILE_NAME }}.zip
|
||||||
Reference in New Issue
Block a user