Fix matching of tags in publish CI action
@@ -8,7 +8,7 @@ name: Publish to crates.io
jobs:
publish_serde_with:
runs-on: ubuntu-latest
- if: startsWith(github.ref, 'v')
+ if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
@@ -23,7 +23,7 @@ jobs:
publish_serde_with_macros:
runs-on: ubuntu-latest
- if: startsWith(github.ref, 'macros-v')
+ if: startsWith(github.ref, 'refs/tags/macros-v')
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
