Skip to content

Commit

Permalink
add cargo publish to GitHub CI
Browse files Browse the repository at this point in the history
Change-Id: I957006b3ac9ae322fd46da3030bb4cba70d80fa2
  • Loading branch information
yangkx1024 committed Nov 24, 2023
1 parent ce55d7c commit 3cf6b8b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish package
on:
release:
types: [published]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cargo publish
run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 3cf6b8b

Please sign in to comment.