-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
goulven
authored and
goulven
committed
Jan 3, 2024
1 parent
b4713bb
commit 5ff4297
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,24 @@ jobs: | |
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
############################################ | ||
# Tag the repository | ||
########################################### | ||
|
||
- name: Tag the repository | ||
id: tag | ||
run: | | ||
# See https://docs.github.com/en/get-started/using-git/dealing-with-special-characters-in-branch-and-tag-names | ||
TAG=v$(date -Iseconds | sed 's/[T:\+]/-/g') | ||
echo "$TAG" | ||
echo "tag=$TAG" >> $GITHUB_OUTPUT | ||
git tag -a $TAG -m "Published version $TAG" ${GITHUB_SHA} | ||
git push origin $TAG | ||
|
||
|
||
############################################ | ||
# Create the release | ||
########################################### | ||
|
@@ -54,6 +72,7 @@ jobs: | |
uses: mikepenz/[email protected] #softprops/action-gh-release | ||
with: | ||
body: ${{steps.github_release.outputs.changelog}} | ||
tag_name: ${{ steps.tag.outputs.tag }} | ||
# files: | | ||
# Release.txt | ||
# LICENSE | ||
|