From 53b501ca73eb0fde4e739cd10c7b3ab21c1d4c1f Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 27 Mar 2024 20:04:14 +0100 Subject: [PATCH 1/2] Add tar.gz file --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1861e68db5..422c4ae2c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,11 +143,13 @@ jobs: releaseName=$version zipName=FireflyIII-$version.zip + tarName=FireflyIII-$version.tar.gz if [[ "develop" == "$version" ]]; then [[ -z $(git status --untracked-files=normal --porcelain) ]] && echo "this branch is clean, no need to push..." && exit 0; releaseName=$version-$(date +'%Y%m%d') zipName=FireflyIII-develop.zip + tarName=FireflyIII-develop.tar.gz fi git add -A @@ -157,11 +159,13 @@ jobs: git commit -m "Auto commit for release '$version' on $(date +'%Y-%m-%d')" || true git push - # zip everything + # zip and tar everything zip -rq $zipName . -x "*.git*" "*.ci*" "*.github*" "*node_modules*" "*output.txt*" + tar --exclude='./.git' --exclude='./.ci' --exclude='./.github' --exclude='./node_modules' --exclude='./output.txt' -czf $tarName . # add sha256 sum sha256sum -b $zipName > $zipName.sha256 + sha256sum -b $tarName > $tarName.sha256 if [[ "develop" == "$version" ]]; then # add text to output.txt (instructions) @@ -185,9 +189,11 @@ jobs: # add zip file to release. gh release upload $releaseName $zipName + gh release upload $releaseName $tarName # add sha256 sum to release gh release upload $releaseName $zipName.sha256 + gh release upload $releaseName $tarName.sha256 # rm output.txt again rm output.txt From a7a54c042ce6d60d5cacccd539fdef506761d7d3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 28 Mar 2024 05:53:31 +0100 Subject: [PATCH 2/2] Touch and exclude tar name --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 422c4ae2c8..f2c2aa6a80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -161,7 +161,8 @@ jobs: # zip and tar everything zip -rq $zipName . -x "*.git*" "*.ci*" "*.github*" "*node_modules*" "*output.txt*" - tar --exclude='./.git' --exclude='./.ci' --exclude='./.github' --exclude='./node_modules' --exclude='./output.txt' -czf $tarName . + touch $tarName + tar --exclude=$tarName --exclude='./.git' --exclude='./.ci' --exclude='./.github' --exclude='./node_modules' --exclude='./output.txt' -czf $tarName . # add sha256 sum sha256sum -b $zipName > $zipName.sha256