Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Deploy Website
on:
workflow_dispatch:
inputs:
version:
description: 'The version of the website used for the GitHub release'
title:
description: 'The name of the GitHub release'
type: string
required: true
description:
description: 'The description of changes used in the GitHub release changelog'
description: 'The description used in the GitHub release (typically a changelog)'
type: string
required: true
make_release:
Expand All @@ -35,11 +35,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Make reference.zip
run: npm run zip
- name: Set Tag Name
run: |
echo "RELEASE_DATE=$(date '+%Y-%m-%d-%H%M%S')" >> ${GITHUB_ENV}
- name: Create release
uses: softprops/action-gh-release@v1
if: ${{ inputs.make_release }}
with:
files: reference.zip
body: ${{ inputs.description }}
name: 'Website ${{ inputs.version }}'
tag_name: ${{ inputs.version }}
name: ${{ inputs.title }}
tag_name: ${{ env.RELEASE_DATE }}