GitHub workflow action used when publishing a new release.
Checks that the plugin exists in the WordPress subversion repository and uses 10up/action-wordpress-plugin-deploy to deploy the plugin release to the WordPress repository and to create a plugin zip archive.
When the plugin does not exist in the WordPress repository (self-hosted), only the plugin zip archive is created.
The resulting zip archive ({plugin-name}.{version}.zip ) is uploaded/attached to the GitHub release.
- Define
SVN_USERNAME,SVN_PASSWORDfor wordpress.org credentials- Organization or Repository : Settings -> Secrets and Variables -> Actions
- WordPress plugin slug is the repository name (lower case).
- Expects tag name to be version (M.m.p) with or without preceding "v" (v1.2.3 or 1.2.3).
- Default wordpress.org assets (screenshots, icons, banners) in /.wp-assets.
- Uses .distignore or .gitattributes for exclusions from WP deployment or only .distignore or internal default list for exclusions from zip archive.
name: On Release, deploy plugin
on:
# When a release is published
release:
types: [published]
jobs:
On-Deploy-Plugin:
uses: EarthAsylum/Workflows/.github/workflows/deploy-wp-plugin.yml@main
with:
wp_assets: '.wp-assets'
GitHub workflow action on workflow_dispatch (manual run).
Uses 10up/action-wordpress-plugin-asset-update to update the readme.txt file and any WordPress assets in the WordPress subversion repository for a plugin.
- Define
SVN_USERNAME,SVN_PASSWORDfor wordpress.org credentials- Organization or Repository : Settings -> Secrets and Variables -> Actions
- WordPress plugin slug is the repository name (lower case).
- Default wordpress.org assets (screenshots, icons, banners) in /.wp-assets.
name: On Dispatch, update assets
on:
# Manually run from GitHub Actions UI
workflow_dispatch:
jobs:
On-Update-Plugin:
uses: EarthAsylum/Workflows/.github/workflows/update-wp-assets.yml@main
with:
wp_assets: '.wp-assets'