drone-sign (#57)

## Types of changes

- [ ] I have read the **CONTRIBUTING** document.
- [ ] My code follows the code style of this project.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] This is **NOT** translation related.

This closes issue #XXX

This is implements feature #YYY

This finishes chore #ZZZ

Co-authored-by: aminecmi <aminecmi@gmail.com>
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/57
This commit is contained in:
Amine Louveau
2022-09-14 10:32:00 +00:00
parent 01763556b1
commit f4db02521d
4 changed files with 120 additions and 17 deletions

View File

@ -1,11 +1,14 @@
#!/bin/bash
# You can pass --force as first parameter to force push and tag creation.
echo "Creating tag $@"
echo "Creating tag $1"
TAG="v$@"
git tag ${TAG}
TAG="v$1"
git tag -a ${TAG} -m ${TAG}
echo "Pushing tag"
git push origin ${TAG}
if [[ "$@" == *'--from-ci'* ]]
then
echo "Tag created. HANDLE IN CI"
else
echo "Pushing tag"
git push origin ${TAG}
fi