Skip to content

Commit f4772d6

Browse files
committed
move releasing to cargo to be on tag
1 parent 172fb0a commit f4772d6

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: release to cargo
2+
on:
3+
workflow_dispatch:
4+
push:
5+
tags: ['*']
6+
jobs:
7+
publish_to_crates_io:
8+
runs-on: ubuntu-latest
9+
name: Publish to crates.io
10+
steps:
11+
# set up
12+
- uses: actions/checkout@v4
13+
14+
- uses: hecrj/setup-rust-action@v1
15+
with:
16+
rust-version: stable
17+
18+
- uses: Swatinem/rust-cache@v2
19+
20+
- uses: pnpm/[email protected]
21+
with:
22+
run_install: false
23+
24+
- name: Publish to crates.io
25+
run: cargo publish
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29+
TERM: xterm

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
uses: changesets/action@v1
5555
with:
5656
version: "pnpm version:prepare"
57-
publish: cargo publish
5857
env:
5958
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6059
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)