diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..e216050 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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/action-gh-release@v2.0.8 + if: startsWith(github.ref, 'refs/tags/') + with: + files: ${{ github.event.repository.name }}.zip