Skip to content

Commit d79ce95

Browse files
Eneman DonatienEneman Donatien
authored andcommitted
[CI] improve release workflow
1 parent dfd69ac commit d79ce95

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
description: "Is release a pre-release ? "
1414
required: true
1515
default: false
16+
type: boolean
1617

1718
name: Make release
1819

@@ -21,7 +22,7 @@ jobs:
2122
runs-on: ubuntu-latest
2223
permissions:
2324
id-token: write
24-
contents: read
25+
contents: write
2526
repository-projects: write
2627
steps:
2728
- name: Checkout
@@ -55,7 +56,7 @@ jobs:
5556
env:
5657
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5758
with:
58-
tag_name: ${{ github.event.inputs.source_ref }}
59+
tag_name: ${{ github.event.inputs.version }}
5960
release_name: Release ${{ github.event.inputs.version }}
6061
draft: false
61-
prerelease: ${{ github.event.inputs.source_ref }}
62+
prerelease: ${{ github.event.inputs.pre_release }}

0 commit comments

Comments
 (0)