Skip to content

Commit

Permalink
update to fix the tagging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam3bed committed Sep 22, 2024
1 parent 895e9dc commit d945bf7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,15 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

- 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
- name: Create a release on GitHub
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit d945bf7

Please sign in to comment.