Skip to content

Commit

Permalink
publish crate on github release
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Nov 17, 2024
1 parent ca5b35c commit ffc796a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "CD"

on:
push:
tags:
- "v*"

jobs:
publish:
name: cargo publish
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo install cargo-expand
- run: cargo test --all-features
- run: cargo publish
2 changes: 1 addition & 1 deletion .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
apply-version:
name: cargo bump
name: "Apply Version"
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit ffc796a

Please sign in to comment.