-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move releasing to cargo to be on tag
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: release to cargo | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: ['*'] | ||
jobs: | ||
publish_to_crates_io: | ||
runs-on: ubuntu-latest | ||
name: Publish to crates.io | ||
steps: | ||
# set up | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: stable | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
run_install: false | ||
|
||
- name: Publish to crates.io | ||
run: cargo publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
TERM: xterm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters