Skip to content

Commit

Permalink
move releasing to cargo to be on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Nov 17, 2024
1 parent 172fb0a commit f4772d6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/release-to-cargo.yml
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
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
uses: changesets/action@v1
with:
version: "pnpm version:prepare"
publish: cargo publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down

0 comments on commit f4772d6

Please sign in to comment.