From 9d11bb0e1fb97d67c5c734ffcfb6d1c48eb5d291 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 13 Jul 2024 07:46:41 +0100 Subject: [PATCH] build: add publish-to-crates-io workflow --- .forgejo/workflows/publish-to-crates-io.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/publish-to-crates-io.yml diff --git a/.forgejo/workflows/publish-to-crates-io.yml b/.forgejo/workflows/publish-to-crates-io.yml new file mode 100644 index 00000000..c5892e66 --- /dev/null +++ b/.forgejo/workflows/publish-to-crates-io.yml @@ -0,0 +1,25 @@ +name: Publish to crates.io + +on: + release: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: docker + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login + uses: https://git.kemitix.net/kemitix/rust@v0.3.1 + with: + args: login "$CARGO_REGISTRY_TOKEN" + + - name: Publish + uses: https://git.kemitix.net/kemitix/rust@v0.3.1 + with: + args: publish --registry crates-io --no-verify