From 82d2db4c2e3fb57adb576569d5c2c0f153e2fd29 Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli Date: Wed, 18 Oct 2023 10:25:00 +0200 Subject: [PATCH 1/2] improve release ci --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dfa2903548..94c1d5ae8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,7 +62,13 @@ jobs: - name: Start sccache server run: sccache --start-server - name: Install cargo-about + if: "!startsWith(runner.os, 'Windows')" run: curl -k https://installer.heliax.click/EmbarkStudios/cargo-about@0.5.7! | bash + - name: Install cargo-about + if: startsWith(runner.os, 'Windows') + run: | + curl -k https://installer.heliax.click/EmbarkStudios/cargo-about@0.5.7 | bash + echo "::add-path::$GITHUB_WORKSPACE" - name: ${{ matrix.make.name }} run: make ${{ matrix.make.command }} - name: Upload binaries package @@ -84,6 +90,7 @@ jobs: release: needs: build runs-on: ${{ matrix.os }} + if: success() || failure() strategy: fail-fast: false matrix: From c0fb8d24537f1c36921aea5537ca4052cff1e0bb Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli Date: Wed, 18 Oct 2023 10:30:35 +0200 Subject: [PATCH 2/2] improve release ci --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94c1d5ae8e..2c147875ad 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,11 @@ on: tags: - "v[0-9]+.[0-9]+.[0-9]+" - "v[0-9]+.[0-9]+.[0-9]+-[a-z]+" + workflow_dispatch: + inputs: + tag: + description: "The tag to release." + required: true permissions: id-token: write @@ -38,6 +43,9 @@ jobs: with: fetch-depth: 0 - run: git fetch --tags --force origin # WA: https://github.com/actions/checkout/issues/882 + - name: Switch to tag if specified + if: "${{ github.event.inputs.tag != '' }}" + run: git checkout ${{ github.event.inputs.tag }} - name: Install Protoc uses: arduino/setup-protoc@v1 with: