Skip to content

Commit

Permalink
feat: add zipping of repository before publishing release in GitHub A…
Browse files Browse the repository at this point in the history
…ctions workflow

Signed-off-by: wiibleyde <nathan@bonnell.fr>
  • Loading branch information
Wiibleyde committed Dec 20, 2024
1 parent 9259ea5 commit 0594a3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ jobs:
git tag v${{ env.VERSION }}
git push https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }} v${{ env.VERSION }}
- name: Zip repository
run: zip -r repo.zip .

- name: Publish release
if: github.event.pull_request.merged == true
uses: softprops/action-gh-release@v1
with:
tag_name: "v${{ env.VERSION }}"
name: "Release v${{ env.VERSION }}"
files: |
dist/**
repo.zip

0 comments on commit 0594a3d

Please sign in to comment.