Skip to content

Commit

Permalink
taging
Browse files Browse the repository at this point in the history
  • 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.
19 changes: 19 additions & 0 deletions .github/workflows/releaseDeployProd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
###########################################
Expand All @@ -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
Expand Down

0 comments on commit 5ff4297

Please sign in to comment.