Skip to content

Commit

Permalink
attempt to publish to cargo via github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jasha-hrp committed Sep 22, 2024
1 parent cd72d21 commit 9a08883
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
tags:
- v*

publish:
name: Publish to crates.io

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2

- name: Publish
# https://doc.rust-lang.org/cargo/reference/config.html?highlight=CARGO_REGISTRY_TOKEN#credentials
run: >
cargo publish
--verbose
--locked
--token ${{ secrets.CARGO_PUBLISH_TOKEN }}

0 comments on commit 9a08883

Please sign in to comment.