diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 14ab7dd..dfe79e7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,7 +47,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - return context.payload.ref.replace(/\/refs\/tags\//, ''); + return context.payload.ref.replace(/refs\/tags\/v/, ''); - name: Build and push if: startsWith(github.ref, 'refs/tags/v') && success() uses: docker/build-push-action@v3 diff --git a/Cargo.lock b/Cargo.lock index f969d88..be5a4a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -420,7 +420,7 @@ dependencies = [ [[package]] name = "tpl" -version = "0.2.0" +version = "0.2.1" dependencies = [ "gtmpl", "gtmpl_value", diff --git a/Cargo.toml b/Cargo.toml index a43a1ab..67db82d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tpl" -version = "0.2.1" +version = "0.2.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html