Skip to content

Commit

Permalink
feat: Add release workflow for creating zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
imantsk committed Aug 21, 2024
1 parent ad361f0 commit f659a37
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release Workflow

on:
release:
types:
- created

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Zip the release
run: |
echo "Zipping the release"
zip -r ${{ github.event.repository.name }}.zip . -x ".git/*" ".github/*" "phpcs.xml" "composer.json" "composer.lock" ".gitignore"
- name: Release
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ github.event.repository.name }}.zip

0 comments on commit f659a37

Please sign in to comment.