File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ name: Deploy Website
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
- version :
7
- description : ' The version of the website used for the GitHub release'
6
+ title :
7
+ description : ' The name of the GitHub release'
8
8
type : string
9
9
required : true
10
10
description :
11
- description : ' The description of changes used in the GitHub release changelog'
11
+ description : ' The description used in the GitHub release (typically a changelog) '
12
12
type : string
13
13
required : true
14
14
make_release :
@@ -35,11 +35,14 @@ jobs:
35
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
36
- name : Make reference.zip
37
37
run : npm run zip
38
+ - name : Set Tag Name
39
+ run : |
40
+ echo "RELEASE_DATE=$(date '+%Y-%m-%d-%H%M%S')" >> ${GITHUB_ENV}
38
41
- name : Create release
39
42
uses : softprops/action-gh-release@v1
40
43
if : ${{ inputs.make_release }}
41
44
with :
42
45
files : reference.zip
43
46
body : ${{ inputs.description }}
44
- name : ' Website ${{ inputs.version }}'
45
- tag_name : ${{ inputs.version }}
47
+ name : ${{ inputs.title }}
48
+ tag_name : ${{ env.RELEASE_DATE }}
You can’t perform that action at this time.
0 commit comments