From 9a0888381cc3eb3cc24a60254d2ed3432e2d22a9 Mon Sep 17 00:00:00 2001 From: Jasha Date: Sun, 22 Sep 2024 12:04:03 -0400 Subject: [PATCH] attempt to publish to cargo via github action --- .github/workflows/publish.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..b34c7c5 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -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 }}