Skip to content

Commit

Permalink
Update deploy-org.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aminurislamarnob authored Oct 11, 2024
1 parent b86d5fd commit 2d93f22
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/deploy-org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ jobs:
php-version: '7.4'
- name: Composer install and build # Remove or modify this step as needed
run: |
composer install
composer update
composer dump-autoload -o
composer install --no-dev
composer dump-autoload -o
- name: WordPress Plugin Deploy
Expand All @@ -56,13 +53,26 @@ jobs:
draft: true
prerelease: true
- name: Upload release asset
uses: softprops/action-gh-release@v2
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: ${{ 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)
files: ${{ github.workspace }}/${{ github.event.repository.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

0 comments on commit 2d93f22

Please sign in to comment.