From 741c94a726643a6237fbfbbd9861c289fa609e17 Mon Sep 17 00:00:00 2001 From: Xuesong Peng Date: Tue, 14 Nov 2023 16:36:35 +0800 Subject: [PATCH] add release action --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c8d7eef..126fbca 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,3 +44,26 @@ jobs: with: name: rabbit-zip path: rabbit.zip + + release: + name: Release + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Download Artifacts + uses: actions/download-artifact@v3 + with: + name: rabbit-zip + + - name: Rename Zip + run: mv rabbit.zip rabbit-${{ github.ref_name }}.zip + + - name: Create Release and Upload Assets + uses: softprops/action-gh-release@v1 + with: + files: | + rabbit-${{ github.ref_name }}.zip