ci: fix tarball step (#63)

This commit is contained in:
winston 2024-01-02 20:50:07 +01:00 committed by GitHub
parent af11bc6d13
commit 7a22664ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -56,6 +56,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
tar czf catppuccin.tar.gz --directory=dist/palettes/ .
pushd dist/palettes; zip -r "$GITHUB_WORKSPACE/catppuccin.zip" *; popd
gh release upload ${{ needs.release-please.outputs.tag_name || inputs.force_release_version }} catppuccin.zip catppuccin.tar --clobber
echo "Creating tarball"
tar cvzf catppuccin.tar.gz --directory=dist/palettes/ . || exit 1
echo "Creating zip"
pushd dist/palettes && zip -r "$GITHUB_WORKSPACE/catppuccin.zip" ./* && popd || exit 1
echo "Uploading release assets"
gh release upload ${{ needs.release-please.outputs.tag_name || inputs.force_release_version }} catppuccin.zip catppuccin.tar.gz --clobber