Skip to content

Commit

Permalink
Add deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammad425 committed Aug 17, 2024
1 parent a64bffa commit 4be41db
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: deploy-to-plugin-directory

on:
release:
types: [published]

jobs:
release:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'

- name: Deploy plugin to WordPress Plugin Directory
uses: 10up/action-wordpress-plugin-deploy@stable
id: deploy
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
ASSETS_DIR: .wordpress-org
SLUG: wh-bulk-price-update-for-woocommerce

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.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

0 comments on commit 4be41db

Please sign in to comment.