mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-29 04:04:11 -06:00
Add tar.gz file
This commit is contained in:
parent
35559c077b
commit
53b501ca73
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -143,11 +143,13 @@ jobs:
|
|||||||
|
|
||||||
releaseName=$version
|
releaseName=$version
|
||||||
zipName=FireflyIII-$version.zip
|
zipName=FireflyIII-$version.zip
|
||||||
|
tarName=FireflyIII-$version.tar.gz
|
||||||
|
|
||||||
if [[ "develop" == "$version" ]]; then
|
if [[ "develop" == "$version" ]]; then
|
||||||
[[ -z $(git status --untracked-files=normal --porcelain) ]] && echo "this branch is clean, no need to push..." && exit 0;
|
[[ -z $(git status --untracked-files=normal --porcelain) ]] && echo "this branch is clean, no need to push..." && exit 0;
|
||||||
releaseName=$version-$(date +'%Y%m%d')
|
releaseName=$version-$(date +'%Y%m%d')
|
||||||
zipName=FireflyIII-develop.zip
|
zipName=FireflyIII-develop.zip
|
||||||
|
tarName=FireflyIII-develop.tar.gz
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git add -A
|
git add -A
|
||||||
@ -157,11 +159,13 @@ jobs:
|
|||||||
git commit -m "Auto commit for release '$version' on $(date +'%Y-%m-%d')" || true
|
git commit -m "Auto commit for release '$version' on $(date +'%Y-%m-%d')" || true
|
||||||
git push
|
git push
|
||||||
|
|
||||||
# zip everything
|
# zip and tar everything
|
||||||
zip -rq $zipName . -x "*.git*" "*.ci*" "*.github*" "*node_modules*" "*output.txt*"
|
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
|
# add sha256 sum
|
||||||
sha256sum -b $zipName > $zipName.sha256
|
sha256sum -b $zipName > $zipName.sha256
|
||||||
|
sha256sum -b $tarName > $tarName.sha256
|
||||||
|
|
||||||
if [[ "develop" == "$version" ]]; then
|
if [[ "develop" == "$version" ]]; then
|
||||||
# add text to output.txt (instructions)
|
# add text to output.txt (instructions)
|
||||||
@ -185,9 +189,11 @@ jobs:
|
|||||||
|
|
||||||
# add zip file to release.
|
# add zip file to release.
|
||||||
gh release upload $releaseName $zipName
|
gh release upload $releaseName $zipName
|
||||||
|
gh release upload $releaseName $tarName
|
||||||
|
|
||||||
# add sha256 sum to release
|
# add sha256 sum to release
|
||||||
gh release upload $releaseName $zipName.sha256
|
gh release upload $releaseName $zipName.sha256
|
||||||
|
gh release upload $releaseName $tarName.sha256
|
||||||
|
|
||||||
# rm output.txt again
|
# rm output.txt again
|
||||||
rm output.txt
|
rm output.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user