From b86d5fd6e649727dacc032caa2bf197026c0dc19 Mon Sep 17 00:00:00 2001 From: Md Aminur Islam Date: Fri, 11 Oct 2024 12:11:59 +0600 Subject: [PATCH] Update deploy-org.yml --- .github/workflows/deploy-org.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy-org.yml b/.github/workflows/deploy-org.yml index e5f122fe..da697593 100644 --- a/.github/workflows/deploy-org.yml +++ b/.github/workflows/deploy-org.yml @@ -56,26 +56,13 @@ jobs: draft: true prerelease: true - name: Upload release asset - uses: actions/upload-release-asset@v1 + uses: softprops/action-gh-release@v2 env: # Note, this is an exception to action secrets: GH_TOKEN is always available and provides access to # the current repository this action runs in. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: - # Get the URL for uploading assets to the current release. - upload_url: ${{ steps.create_release.outputs.upload_url }} - - # Provide the path to the file generated in the previous step using the output. - asset_path: ${{ steps.deploy.outputs.zip-path }} - # Provide what the file should be named when attached to the release (plugin-name.zip) - asset_name: wedevs-project-manager.zip - - # Provide the file type. - asset_content_type: application/zip - - - name: Generate zip - uses: 10up/action-wordpress-plugin-build-zip@stable - env: - SLUG: wedevs-project-manager # optional, remove if GitHub repo name matches SVN slug, including capitalization + files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip