Skip to content

Commit 8f793d3

Browse files
neaten up release action
1 parent 16808f3 commit 8f793d3

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,17 @@ jobs:
2626
- name: Install dependencies and compile assets
2727
run: melos prepare
2828

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-
3929
# Create the Draft release using the tag name
4030
- name: Create Draft Release
4131
id: create_release
4232
uses: actions/create-release@v1
4333
env:
4434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4535
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 }}
4838
draft: true
49-
prerelease: ${{ steps.determine_prerelease.outputs.is_prerelease }}
39+
prerelease: true # TODO set this as false in future
5040

5141
# Upload the compiled assets to the Draft release.
5242
- name: Upload Assets to Draft Release

0 commit comments

Comments
 (0)