Skip to content

Repository files navigation

EarthAsylum Action Workflows

Action workflows available to all repositories

deploy-wp-plugin.yml

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.

User Repository Action

  • Define SVN_USERNAME, SVN_PASSWORD for 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.
on-release-deploy-plugin.yml:
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'

update-wp-assets.yml

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.

User Repository Action

  • Define SVN_USERNAME, SVN_PASSWORD for 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.
on-dispatch-update-assets.yml:
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'

About

Action workflows available to all repositories

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors