Skip to content

Commit

Permalink
CI: Add automatic publish on tag creation (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Mar 9, 2024
1 parent 2a0bf2b commit df62625
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
push:
tags:
- '*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish to crates.io
run: |
cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit df62625

Please sign in to comment.