From 9ec35cf68483b14857684c69076e95d905090f90 Mon Sep 17 00:00:00 2001 From: AsenHu <78863300+AsenHu@users.noreply.github.com> Date: Tue, 17 Dec 2024 03:01:40 +0000 Subject: [PATCH] skip uploading JSON files in release workflow --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 511d6a0e..cfe72d2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,8 +77,10 @@ jobs: TAG: ${{ steps.get_ci_id.outputs.tag }} run: | for file in $(find . -type f); do - echo "Uploading $file..." - gh release upload $TAG "$file" --clobber --repo="${GH_REPOSITORY}" || echo "Something went wrong, skipping." + case "$file" in + *json*) echo "Skipping $file...";; + *) echo "Uploading $file..."; gh release upload $TAG "$file" --clobber --repo="${GH_REPOSITORY}" || echo "Something went wrong, skipping.";; + esac done - name: upload release assets to website @@ -109,6 +111,8 @@ jobs: ssh -q website "mkdir -v /var/www/girlboss.ceo/~strawberry/conduwuit/releases/$TAG/" for file in $(find . -type f); do - echo "Uploading $file to website" - scp $file website:/var/www/girlboss.ceo/~strawberry/conduwuit/releases/$TAG/$file + case "$file" in + *json*) echo "Skipping $file...";; + *) echo "Uploading $file to website"; scp $file website:/var/www/girlboss.ceo/~strawberry/conduwuit/releases/$TAG/$file;; + esac done