Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically build and deploy latest commits to the test site #1255

Open
wynnset opened this issue Sep 13, 2022 · 0 comments
Open

Automatically build and deploy latest commits to the test site #1255

wynnset opened this issue Sep 13, 2022 · 0 comments

Comments

@wynnset
Copy link
Collaborator

wynnset commented Sep 13, 2022

Use Github actions:

  • Whenever a new commit is made on a branch
  • Build the vue app
  • Create a folder for the plugin containing the required files & directories for the plugin (inside of the templates/vue directory, only include the dist directory as other files and directories in there are not used for prod)
  • Zip the folder
  • Use wp-cli to:
    • Check if there's already a site created for this branch (site name = branch name)
    • If there's no site, create a site and set its permalinks to be post name
    • Upload the new plugin (this needs to be done on the top level of multisite)
    • Activate the plugin on the given site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant