diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml
index 0073fed..95486dc 100644
--- a/.github/workflows/build-and-release.yaml
+++ b/.github/workflows/build-and-release.yaml
@@ -77,11 +77,9 @@ jobs:
       - name: Make a new latest tag and force push it
         if: ${{ steps.get_version.outputs.new_tag != 'false' }}
         run: |
-          rm -f .version
-          echo ${{ steps.get_version.outputs.new_tag }} > .version
+          git fetch --tags
           git config user.name github-actions
           git config user.email no-reply@github.com
-          git add .version
           git tag -f latest ${{ steps.get_version.outputs.new_tag }}
           git commit -m "Bump version to ${{ steps.get_version.outputs.new_tag }} [skip ci]"
           git push origin latest --force