From 80899602e5eb200ae0fb96ebe71c805ee8bec16b Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 29 May 2026 15:12:50 +0545 Subject: [PATCH] fix: make crates.io publish non-blocking, add workflow_dispatch, fix AUR action --- .github/workflows/release-smoke.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-smoke.yml b/.github/workflows/release-smoke.yml index 9d73953..2b42474 100644 --- a/.github/workflows/release-smoke.yml +++ b/.github/workflows/release-smoke.yml @@ -6,6 +6,11 @@ on: - 'v[0-9]+.[0-9]+.[0-9]+' release: types: [published] + workflow_dispatch: + inputs: + version: + description: 'Version to publish (e.g. 0.3.4)' + required: true env: CARGO_TERM_COLOR: always jobs: @@ -35,6 +40,7 @@ jobs: name: lapctl-${{ github.ref_name }} path: ./target/release/lapctl - name: Publish to crates.io + continue-on-error: true env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish @@ -55,7 +61,9 @@ jobs: run: sudo pacman -S --noconfirm --needed base-devel - name: Get version id: version - run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" + run: echo "version=${VERSION}" >> "$GITHUB_OUTPUT" + env: + VERSION: ${{ github.event.inputs.version || github.ref_name }} - name: Generate PKGBUILD with cargo-aur run: | cargo install cargo-aur