From 5e08157ace499c1afdf8b3fa317315f8f8601032 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 14 Jan 2025 13:12:29 -0500 Subject: [PATCH] publish pkgx to crates.io --- .github/workflows/cd.crates.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/cd.crates.yml diff --git a/.github/workflows/cd.crates.yml b/.github/workflows/cd.crates.yml new file mode 100644 index 000000000..79c9386a5 --- /dev/null +++ b/.github/workflows/cd.crates.yml @@ -0,0 +1,28 @@ +name: cd·crates + +on: + release: + types: + - published + workflow_dispatch: + inputs: + release-id: + required: true + +concurrency: + group: cd/crates/${{ github.event.release.tag_name || github.event.inputs.release-id }} + cancel-in-progress: true + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.release.tag_name || github.event.inputs.release-id }} + - uses: dtolnay/rust-toolchain@stable + - uses: katyo/publish-crates@v2 + with: + # TODO: remove --package to publish libpkgx as well + args: --package pkgx --all-features + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}