diff --git a/.github/workflows/update-major-tag.yml b/.github/workflows/update-major-tag.yml index ffdae30..c06cab8 100644 --- a/.github/workflows/update-major-tag.yml +++ b/.github/workflows/update-major-tag.yml @@ -19,6 +19,5 @@ jobs: git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" export TAG_NAME="${GITHUB_REF##refs/tags/}" export TAG_MAJOR="${TAG_NAME%%.*}" - git tag "${TAG_MAJOR}" -m "Release ${TAG_NAME}" || git tag -d "${TAG_MAJOR}" ; git push --delete origin "${TAG_MAJOR}" - git tag "${TAG_MAJOR}" -m "Release ${TAG_NAME}" || true - git push origin "${TAG_MAJOR}" + git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}" + git push --force origin "${TAG_MAJOR}" diff --git a/release.sh b/release.sh index 5f2e354..ea71393 100755 --- a/release.sh +++ b/release.sh @@ -27,6 +27,7 @@ fi git fetch origin git pull origin master +git tag -d v1 git pull origin --tags mkdir ./lib