From 9299d30a73ac640b79a126302be4bb4f8c285154 Mon Sep 17 00:00:00 2001 From: Colin Nelson Date: Fri, 6 Mar 2026 21:40:36 +0000 Subject: [PATCH] [github] add workflow to publish --- .github/workflows/publish.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..1e2a6f9 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,44 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Publish argh_shared + run: cargo publish --manifest-path argh_shared/Cargo.toml + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + - name: Publish argh_derive + run: | + sleep 10 # Wait for crates.io index to update + cargo publish --manifest-path argh_derive/Cargo.toml + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + - name: Publish argh_complete + run: | + sleep 10 # Wait for crates.io index to update + cargo publish --manifest-path argh_complete/Cargo.toml + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + - name: Publish argh + run: | + sleep 10 # Wait for crates.io index to update + cargo publish --manifest-path argh/Cargo.toml + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}