diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..fc21a3d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Publish crate + run: cargo publish --token ${TOKEN} + env: + TOKEN: ${{ secrets.CRATES_IO_ERSPAN_RS_PUBLISH_UPDATE_TOKEN }}