From a30d33ff27a71626f5db9bb7fa49122ceaa1e622 Mon Sep 17 00:00:00 2001 From: Bernhard Kau Date: Fri, 1 Nov 2024 17:11:24 +0100 Subject: [PATCH] Add ZIP creation to deploy action --- .github/workflows/wordpress-plugin-deploy.yml | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wordpress-plugin-deploy.yml b/.github/workflows/wordpress-plugin-deploy.yml index dd68ede..6f434e8 100644 --- a/.github/workflows/wordpress-plugin-deploy.yml +++ b/.github/workflows/wordpress-plugin-deploy.yml @@ -5,12 +5,27 @@ on: jobs: tag: - name: New tag + name: New release runs-on: ubuntu-latest steps: - - uses: actions/checkout@master + - name: Checkout code + uses: actions/checkout@v2 + - name: WordPress Plugin Deploy + id: deploy uses: 10up/action-wordpress-plugin-deploy@stable + with: + generate-zip: true env: - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + + - name: Upload release asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ${{ steps.deploy.outputs.zip-path }} + asset_name: ${{ github.event.repository.name }}.zip + asset_content_type: application/zip