Skip to content

Commit

Permalink
add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Nov 14, 2023
1 parent 5cd6e4f commit 741c94a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 741c94a

Please sign in to comment.