Skip to content

Commit 5ef9871

Browse files
authored
Modify release upload process in build.yml
Updated the GitHub Actions workflow to create a release with modified parameters for draft and prerelease.
1 parent 670cd70 commit 5ef9871

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,12 @@ jobs:
5454
name: AsterIDE-macos
5555
path: build/AsterIDE.dmg
5656

57-
- name: Upload DMG to release
58-
if: startsWith(github.ref, 'refs/tags/')
57+
- name: Create release
5958
uses: softprops/action-gh-release@v2
6059
with:
61-
files: build/AsterIDE.dmg
62-
draft: false
63-
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
64-
generate_release_notes: true
65-
env:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
prerelease: ${{ contains(github.ref_name, '-') }}
61+
draft: true
62+
files: |
63+
build/AsterIDE.dmg
64+
name: AsterIDE ${{ github.ref_name }}
65+
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)