skip uploading JSON files in release workflow
This commit is contained in:
parent
63c4975483
commit
9ec35cf684
1 changed files with 8 additions and 4 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -77,8 +77,10 @@ jobs:
|
||||||
TAG: ${{ steps.get_ci_id.outputs.tag }}
|
TAG: ${{ steps.get_ci_id.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
for file in $(find . -type f); do
|
for file in $(find . -type f); do
|
||||||
echo "Uploading $file..."
|
case "$file" in
|
||||||
gh release upload $TAG "$file" --clobber --repo="${GH_REPOSITORY}" || echo "Something went wrong, skipping."
|
*json*) echo "Skipping $file...";;
|
||||||
|
*) echo "Uploading $file..."; gh release upload $TAG "$file" --clobber --repo="${GH_REPOSITORY}" || echo "Something went wrong, skipping.";;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: upload release assets to website
|
- name: upload release assets to website
|
||||||
|
@ -109,6 +111,8 @@ jobs:
|
||||||
ssh -q website "mkdir -v /var/www/girlboss.ceo/~strawberry/conduwuit/releases/$TAG/"
|
ssh -q website "mkdir -v /var/www/girlboss.ceo/~strawberry/conduwuit/releases/$TAG/"
|
||||||
|
|
||||||
for file in $(find . -type f); do
|
for file in $(find . -type f); do
|
||||||
echo "Uploading $file to website"
|
case "$file" in
|
||||||
scp $file website:/var/www/girlboss.ceo/~strawberry/conduwuit/releases/$TAG/$file
|
*json*) echo "Skipping $file...";;
|
||||||
|
*) echo "Uploading $file to website"; scp $file website:/var/www/girlboss.ceo/~strawberry/conduwuit/releases/$TAG/$file;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue