Skip to content

Commit 741c94a

Browse files
committed
add release action
1 parent 5cd6e4f commit 741c94a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,26 @@ jobs:
4444
with:
4545
name: rabbit-zip
4646
path: rabbit.zip
47+
48+
release:
49+
name: Release
50+
if: startsWith(github.ref, 'refs/tags/v')
51+
runs-on: ubuntu-latest
52+
needs: build
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
57+
- name: Download Artifacts
58+
uses: actions/download-artifact@v3
59+
with:
60+
name: rabbit-zip
61+
62+
- name: Rename Zip
63+
run: mv rabbit.zip rabbit-${{ github.ref_name }}.zip
64+
65+
- name: Create Release and Upload Assets
66+
uses: softprops/action-gh-release@v1
67+
with:
68+
files: |
69+
rabbit-${{ github.ref_name }}.zip

0 commit comments

Comments
 (0)