Skip to content

Commit

Permalink
Add action to create a zip and upload it to the release on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
mrabbani committed Mar 25, 2024
1 parent a08571e commit 4463fda
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy-org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,26 @@ jobs:
uses: 10up/action-wordpress-plugin-deploy@stable
with:
dry-run: true
generate-zip: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: wedevs-project-manager
- name: Upload release asset
uses: actions/upload-release-asset@v1
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: ${{ github.event.release.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: ${{ github.event.repository.name }}.zip

# Provide the file type.
asset_content_type: application/zip

0 comments on commit 4463fda

Please sign in to comment.