Build and deploy to WordPress.org #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy to WordPress.org | |
on: | |
release: | |
types: [published] | |
jobs: | |
tag: | |
name: New tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@main | |
# Install all composer dependencies for the plugin. | |
- name: Install Composer dependencies | |
uses: php-actions/composer@v6 | |
with: | |
dev: no | |
php_version: 7.4 | |
- name: Install PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: true | |
- name: Build Assets | |
run: pnpm run build | |
# Deploy the plugin to WordPress.org | |
- 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 }} | |
SLUG: ledyer-checkout-for-woocommerce |