Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
miladsoft committed Sep 29, 2024
1 parent 7eb7fa0 commit 494bc14
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ jobs:
name: ${{ env.PROJECT_NAME }}-preview-${{ env.VERSION }}
path: ${{ env.RELEASE_NAME }}

# Step 10: Create/Update GitHub Release using GitHub CLI
- name: Create GitHub Release
# Step 10: Create or Update GitHub Release
- name: Create or Update GitHub Release
run: |
gh release create ${{ env.VERSION }} ${{ env.RELEASE_NAME }} --title "${{ env.PROJECT_NAME }} v${{ env.VERSION }}" --draft --notes "Auto-generated release for version ${{ env.VERSION }}"
if gh release view ${{ env.VERSION }}; then
gh release upload ${{ env.VERSION }} ${{ env.RELEASE_NAME }} --clobber
else
gh release create ${{ env.VERSION }} ${{ env.RELEASE_NAME }} --title "${{ env.PROJECT_NAME }} v${{ env.VERSION }}" --draft --notes "Auto-generated release for version ${{ env.VERSION }}"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 494bc14

Please sign in to comment.