From 7a22664ee6782b977df88cf539c71fc09740f4a6 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 2 Jan 2024 20:50:07 +0100 Subject: [PATCH] ci: fix tarball step (#63) --- .github/workflows/release-please.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ab32936..2732b56 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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