Skip to content

Commit

Permalink
Fix auto-release CICD, set date-based tag name for release
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Oct 28, 2023
1 parent f6f4a9e commit 47371be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,16 @@ jobs:
tar -czvf static_website.tar.gz static_website
- name: Set Release Name
id: set_release_name
run: echo "RELEASE_NAME=$(date +'%Y-%m-%d %H:%M:%S')" >> "$GITHUB_OUTPUT"

run: |
echo "RELEASE_NAME=$(date +'%Y-%m-%d %H:%M:%S')" >> "$GITHUB_OUTPUT"
echo "TAG_NAME=v$(date +'%Y-%m-%d %H:%M:%S')" >> "$GITHUB_OUTPUT"
- name: Create Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
tag_name: ${{ steps.set_release_name.outputs.TAG_NAME }}
release_name: ${{ steps.set_release_name.outputs.RELEASE_NAME }}
draft: false
prerelease: false
Expand Down

0 comments on commit 47371be

Please sign in to comment.