Commit e42bef2 1 parent 75950b9 commit e42bef2 Copy full SHA for e42bef2
File tree 1 file changed +17
-17
lines changed
blueprints/wpcli-post-with-image
1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 7
7
"categories" : [" Content" , " wpcli" ]
8
8
},
9
9
"landingPage" : " /?p=4" ,
10
+ "login" : true ,
10
11
"steps" : [
11
12
{
12
- "step" : " login"
13
- },
14
- {
15
- "step" : " writeFile" ,
16
- "path" : " /wordpress/wp-content/postcontent.md" ,
17
- "data" : {
18
- "resource" : " url" ,
19
- "url" : " https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/postcontent.md"
13
+ "step" : " writeFiles" ,
14
+ "writeToPath" : " /wordpress/wp-content" ,
15
+ "filesTree" : {
16
+ "resource" : " literal:directory" ,
17
+ "name" : " wp-content" ,
18
+ "files" : {
19
+ "postcontent.md" : {
20
+ "resource" : " url" ,
21
+ "url" : " https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/postcontent.md"
22
+ },
23
+ "Select-storage-method.png" : {
24
+ "resource" : " url" ,
25
+ "url" : " https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/Select-storage-method.png"
26
+ }
27
+ }
20
28
}
21
- },
29
+ },
22
30
{
23
31
"step" : " wp-cli" ,
24
32
"command" : " wp post create --post_title='Welcome to Playground' --post_status='published' /wordpress/wp-content/postcontent.md"
25
33
},
26
- {
27
- "step" : " writeFile" ,
28
- "path" : " /wordpress/wp-content/Select-storage-method.png" ,
29
- "data" : {
30
- "resource" : " url" ,
31
- "url" : " https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/wpcli-post-with-image/Select-storage-method.png"
32
- }
33
- },
34
34
{
35
35
"step" : " wp-cli" ,
36
36
"command" : " wp media import wordpress/wp-content/Select-storage-method.png --post_id=4 --title='Select your storage method' --featured_image"
You can’t perform that action at this time.
0 commit comments