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

Fix/950 #951

Merged
merged 6 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ function createBlueprint(context, number, zipArtifactUrl, phpVersion) {
networking: true
},
steps: [
{
step: 'enableMultisite',
},
{
step: 'login',
username: 'admin',
Expand Down Expand Up @@ -107,12 +104,15 @@ function createBlueprint(context, number, zipArtifactUrl, phpVersion) {
*/
{
step: 'unzip',
zipPath: '/wordpress/pr/pr.zip',
zipFile: {
resource: 'vfs',
path: '/wordpress/pr/pr.zip',
},
extractToPath: '/wordpress/pr',
},
{
step: 'installPlugin',
pluginZipFile: {
pluginData: {
resource: 'vfs',
path: '/wordpress/pr/gatherpress.zip',
},
Expand All @@ -124,6 +124,16 @@ function createBlueprint(context, number, zipArtifactUrl, phpVersion) {
url: 'https://raw.githubusercontent.com/GatherPress/gatherpress-demo-data/main/GatherPress-demo-data-2024.xml'
}
},
/**
* Run 'enableMultisite' after the plugin activation!
*
* There have been some weird errors with this step, when ran after the login.
* Having it here at the end -kinda- fixes the problem.
* @see https://github.com/GatherPress/gatherpress/issues/950
*/
{
step: 'enableMultisite',
},
],
};

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playground-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,5 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const createPreviewLinks = require('.github/scripts/create-preview-links');
const createPreviewLinks = require('.github/scripts/playground-preview');
createPreviewLinks(github, context);