File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -26,27 +26,17 @@ jobs:
26
26
- name : Install dependencies and compile assets
27
27
run : melos prepare
28
28
29
- # Extract the tag name from the event payload
30
- - name : Get Tag Name
31
- id : get_tag_name
32
- run : echo ::set-output name=tag_name::${GITHUB_REF/refs\/tags\//}
33
-
34
- # Determine if the release should be a prerelease (true if the version contains "-")
35
- - name : Determine Prerelease
36
- id : determine_prerelease
37
- run : echo ::set-output name=is_prerelease::$(echo ${{ steps.get_tag_name.outputs.tag_name }} | grep -q "-" && echo "true" || echo "false")
38
-
39
29
# Create the Draft release using the tag name
40
30
- name : Create Draft Release
41
31
id : create_release
42
32
uses : actions/create-release@v1
43
33
env :
44
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
35
with :
46
- tag_name : ${{ steps.get_tag_name.outputs.tag_name }} # Use the pushed tag name
47
- release_name : Release ${{ steps.get_tag_name.outputs.tag_name }}
36
+ tag_name : ${{ github.ref }}
37
+ release_name : Release ${{ github.ref }}
48
38
draft : true
49
- prerelease : ${{ steps.determine_prerelease.outputs.is_prerelease }}
39
+ prerelease : true # TODO set this as false in future
50
40
51
41
# Upload the compiled assets to the Draft release.
52
42
- name : Upload Assets to Draft Release
You can’t perform that action at this time.
0 commit comments