Skip to content

Commit 2560c35

Browse files
authored
Merge pull request #431 from processing/SableRaf-ProcessingDeployAction-SetTagFromDateTime
Set release tag from time and date. Needs testing on main.
2 parents 6751479 + 89b82e0 commit 2560c35

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Deploy Website
33
on:
44
workflow_dispatch:
55
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'
88
type: string
99
required: true
1010
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)'
1212
type: string
1313
required: true
1414
make_release:
@@ -35,11 +35,14 @@ jobs:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
- name: Make reference.zip
3737
run: npm run zip
38+
- name: Set Tag Name
39+
run: |
40+
echo "RELEASE_DATE=$(date '+%Y-%m-%d-%H%M%S')" >> ${GITHUB_ENV}
3841
- name: Create release
3942
uses: softprops/action-gh-release@v1
4043
if: ${{ inputs.make_release }}
4144
with:
4245
files: reference.zip
4346
body: ${{ inputs.description }}
44-
name: 'Website ${{ inputs.version }}'
45-
tag_name: ${{ inputs.version }}
47+
name: ${{ inputs.title }}
48+
tag_name: ${{ env.RELEASE_DATE }}

0 commit comments

Comments
 (0)