From 361f4854b75d8e554d5505ab06578ed9eb12261b Mon Sep 17 00:00:00 2001 From: Jamie Hodgson Date: Fri, 11 Oct 2024 19:32:26 +0200 Subject: [PATCH] create all packs zip --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1965cf6..6c9477e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,21 +44,24 @@ jobs: python3 $builder done - - name: Rename packs + - name: Rename packs and create zip run: | CURRENT_DATE=$(date +'%Y-%m-%d') + echo "CURRENT_DATE=$CURRENT_DATE" >> $GITHUB_ENV for pack in *.iconpack; do mv $pack $(echo $pack | sed "s|\.iconpack|-$CURRENT_DATE.iconpack|g") done - echo "CURRENT_DATE=$CURRENT_DATE" >> $GITHUB_ENV + zip "_all-$CURRENT_DATE.zip" *.iconpack - name: Create release uses: softprops/action-gh-release@v2 with: name: "Release ${{ env.CURRENT_DATE }}" tag_name: "${{ env.CURRENT_DATE }}" - files: "*.iconpack" + files: | + *.iconpack + _all-${{ env.CURRENT_DATE }}.zip token: "${{ secrets.TOKEN }}" make_latest: true