Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vince committed Nov 19, 2024
1 parent d4e02c4 commit 778e7a8
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,23 @@ jobs:
- name: Upload DevBuild as release
if: github.repository == 'hellsuck/vencordradiant'
run: |
if ! gh release view devbuild; then
gh release create devbuild $RELEASE_TAG --title "DevBuild $RELEASE_TAG"
fi
gh release upload devbuild --clobber dist/*
gh release edit devbuild --title "DevBuild $RELEASE_TAG"
if ! gh release view devbuild; then
echo "Release does not exist. Creating release..."
gh release create devbuild $RELEASE_TAG --title "DevBuild $RELEASE_TAG"
else
echo "Release already exists. Skipping creation."
fi

# Check if dist/* files exist
if [ -d "dist" ] && [ "$(ls -A dist)" ]; then
echo "Uploading files to the release..."
gh release upload devbuild dist/* --clobber
else
echo "No files found in dist/ to upload."
fi

# Edit release title if necessary
gh release edit devbuild --title "DevBuild $RELEASE_TAG"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ env.release_tag }}
Expand Down

0 comments on commit 778e7a8

Please sign in to comment.