diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 29503be..11e3bd0 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -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