From f659a37e1f78cadf57a8d793fe42b7d0c70d80c8 Mon Sep 17 00:00:00 2001 From: Imants Date: Wed, 21 Aug 2024 23:24:19 +0300 Subject: [PATCH] feat: Add release workflow for creating zip file --- .github/workflows/release.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release.yaml 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