Skip to content

Commit 4c76bc0

Browse files
authored
Set release tag from time and date
Set tag from time and date
1 parent 4b38ce5 commit 4c76bc0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 ::set-env name=TAG_NAME::$(date '+%Y-%m-%d-%H%M')
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 }}
4447
name: 'Website ${{ inputs.version }}'
45-
tag_name: ${{ inputs.version }}
48+
tag_name: ${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)