diff --git a/.forgejo/workflows/publish-to-crates-io.yml b/.forgejo/workflows/publish-to-crates-io.yml new file mode 100644 index 0000000..c5892e6 --- /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