From 5b0b6a2f4714df21145ac8f1a000a73d166dd600 Mon Sep 17 00:00:00 2001 From: Cristiano Piemontese Date: Tue, 5 Mar 2024 10:34:22 +0100 Subject: [PATCH] add yank flow (#60) --- .github/workflows/yank.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/yank.yml diff --git a/.github/workflows/yank.yml b/.github/workflows/yank.yml new file mode 100644 index 0000000..61af013 --- /dev/null +++ b/.github/workflows/yank.yml @@ -0,0 +1,25 @@ +name: Yank + +on: + workflow_dispatch: + inputs: + version: + description: Version to yank + required: true + default: x.y.z + type: string + +jobs: + retire: + runs-on: ubuntu-latest + env: + VERSION: ${{ inputs.version }} + steps: + - uses: actions/checkout@v4 + - run: echo "Attempting to yank version $VERSION" + - name: Login + run: cargo login "$CARGO_AUTH_KEY" + env: + CARGO_AUTH_KEY: ${{ secrets.CARGO_AUTH_KEY }} + - name: Yank + run: cargo yank --version "$VERSION"