1
1
# IssueOps Releaser
2
2
3
- [ ![ Check dist/] ( https://github.com/issue-ops/releaser/actions/workflows/check-dist.yml/badge.svg )] ( https://github.com/issue-ops/releaser/actions/workflows/check-dist.yml )
4
- [ ![ CodeQL] ( https://github.com/issue-ops/releaser/actions/workflows/codeql.yml/badge.svg )] ( https://github.com/issue-ops/releaser/actions/workflows/codeql.yml )
5
- [ ![ Continuous Integration] ( https://github.com/issue-ops/releaser/actions/workflows/continuous-integration.yml/badge.svg )] ( https://github.com/issue-ops/releaser/actions/workflows/continuous-integration.yml )
6
- [ ![ Continuous Delivery] ( https://github.com/issue-ops/releaser/actions/workflows/continuous-delivery.yml/badge.svg )] ( https://github.com/issue-ops/releaser/actions/workflows/continuous-delivery.yml )
7
- [ ![ Linter] ( https://github.com/issue-ops/releaser/actions/workflows/linter.yml/badge.svg )] ( https://github.com/issue-ops/releaser/actions/workflows/linter.yml )
8
- [ ![ Code Coverage] ( ./badges/coverage.svg ) ]( ./badges/coverage.svg )
3
+ ![ Check dist/] ( https://github.com/issue-ops/releaser/actions/workflows/check-dist.yml/badge.svg )
4
+ ![ CodeQL] ( https://github.com/issue-ops/releaser/actions/workflows/codeql.yml/badge.svg )
5
+ ![ Continuous Integration] ( https://github.com/issue-ops/releaser/actions/workflows/continuous-integration.yml/badge.svg )
6
+ ![ Continuous Delivery] ( https://github.com/issue-ops/releaser/actions/workflows/continuous-delivery.yml/badge.svg )
7
+ ![ Linter] ( https://github.com/issue-ops/releaser/actions/workflows/linter.yml/badge.svg )
8
+ ![ Code Coverage] ( ./badges/coverage.svg )
9
9
10
10
Handle releases for GitHub repositories
11
11
78
78
ref : main
79
79
80
80
# Use the version output from the previous step for the release
81
- # Prepend a 'v' to the beginning (e.g. 'v1.2.3')
81
+ # Prepends a 'v' to the beginning (e.g. 'v1.2.3')
82
82
- name : Create Release
83
83
id : create-release
84
84
@@ -95,20 +95,17 @@ Actions variable.
95
95
name : Continuous Delivery
96
96
97
97
on :
98
- pull_request :
99
- types :
100
- - closed
101
- branches :
102
- - main
98
+ workflow_dispatch :
99
+ inputs :
100
+ version :
101
+ description : ' The version to release'
102
+ required : true
103
+ default : ' v0.0.0'
103
104
104
105
# This is required to be able to update tags and create releases
105
106
permissions :
106
107
contents : write
107
108
108
- # This could also be a GitHub Actions variable
109
- env :
110
- RELEASE_VERSION : v1.2.3
111
-
112
109
jobs :
113
110
release :
114
111
name : Release Version
@@ -118,44 +115,44 @@ jobs:
118
115
if : ${{ github.event.pull_request.merged == true }}
119
116
120
117
steps :
121
- # Checkout the repository with fetch-tags set to true
118
+ # Checkout the repository, making sure to set fetch-depth to 0 and
119
+ # fetch-tags set to true
122
120
- name : Checkout
123
121
id : checkout
124
122
uses : actions/checkout@v4
125
123
with :
124
+ fetch-depth : 0
126
125
fetch-tags : true
127
126
128
- # Use the version from the environment variable for the release
127
+ # Use the version from the input variable
129
128
- name : Create Release
130
129
id : create-release
131
130
132
131
with :
133
- tag : ${{ env.RELEASE_VERSION }}
132
+ tag : ${{ inputs.version }}
134
133
` ` `
135
134
136
135
## Inputs
137
136
138
- | Input | Description |
139
- | ------------------------ | ------------------------------------------------- |
140
- | ` draft` | Whether or not the release should be a draft |
141
- | | Default : ` false` |
142
- | `generate_release_notes` | Whether or not to generate release notes |
143
- | | Default : ` true` |
144
- | `github_token` | The token to use for authentication |
145
- | | Default : ` ${{ github.token }}` |
146
- | `name` | The name of the release |
147
- | | Default : The `tag` value |
148
- | `notes` | The release notes, prepended to the generated |
149
- | | notes if `generate_release_notes` is `true` |
150
- | `owner` | The owner of the repository |
151
- | | Default : The owner of the workflow repository |
152
- | `prerelease` | Whether or not the release should be a prerelease |
153
- | | Default : ` false` |
154
- | `repo` | The repository to create the release in |
155
- | | Default : The workflow repository |
156
- | `tag` | The tag to create or reference for the release |
157
- | `target_commitish` | The branch or commit SHA to tag for the release |
158
- | | Not required if the tag already exists |
137
+ | Input | Description |
138
+ | ------------------------ | ----------------------------------------------------------------------------------------- |
139
+ | ` draft` | Whether or not the release should be a draft |
140
+ | | Default : ` false` |
141
+ | `generate_release_notes` | Whether or not to generate release notes |
142
+ | | Default : ` true` |
143
+ | `github_token` | The token to use for authentication |
144
+ | | Default : ` ${{ github.token }}` |
145
+ | `name` | The name of the release |
146
+ | | Default : The `tag` value |
147
+ | `notes` | The release notes, prepended to the generated notes if `generate_release_notes` is `true` |
148
+ | `owner` | The owner of the repository |
149
+ | | Default : The owner of the workflow repository |
150
+ | `prerelease` | Whether or not the release should be a prerelease |
151
+ | | Default : ` false` |
152
+ | `repo` | The repository to create the release in |
153
+ | | Default : The workflow repository |
154
+ | `tag` | The tag to create or reference for the release |
155
+ | `target_commitish` | The branch or commit SHA to tag for the release (not required if the tag already exists) |
159
156
160
157
# # Outputs
161
158
0 commit comments