From e9d68de9f596d7935f872a7a99952d476d7ec350 Mon Sep 17 00:00:00 2001 From: Mark Rapson Date: Wed, 21 May 2025 11:06:11 +0000 Subject: [PATCH] Add .gitea/workflows/zip_pack.yaml --- .gitea/workflows/zip_pack.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/zip_pack.yaml diff --git a/.gitea/workflows/zip_pack.yaml b/.gitea/workflows/zip_pack.yaml new file mode 100644 index 0000000..1e2b41c --- /dev/null +++ b/.gitea/workflows/zip_pack.yaml @@ -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 \ No newline at end of file