File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Build and Deploy Writerside + CodeLabs
2
2
3
3
on :
4
4
push :
5
- branches : [ "dev" ]
5
+ branches : ["dev"]
6
6
workflow_dispatch :
7
7
8
8
permissions :
77
77
78
78
# Zip the combined Writerside + CodeLabs content
79
79
- name : Zip combined content
80
- run : zip -r combined-docs.zip dir
80
+ run : cd dir && zip -r ../ combined-docs.zip .
81
81
82
82
# Save the ZIP artifact with combined Writerside + CodeLabs content
83
83
- name : Save combined artifact with Writerside and CodeLabs
91
91
environment :
92
92
name : github-pages
93
93
url : ${{ steps.deployment.outputs.page_url }}
94
- # Requires build job results
95
94
needs : build
96
95
runs-on : ubuntu-latest
97
96
@@ -114,11 +113,11 @@ jobs:
114
113
- name : Setup Pages
115
114
116
115
117
- # Upload the CONTENTS of the 'dir' folder to GitHub Pages ROOT
118
- - name : Upload to GitHub Pages
116
+ # Upload to GitHub Pages
117
+ - name : Upload artifact
119
118
120
119
with :
121
- path : dir/** # This uploads all the contents of 'dir/' to the root
120
+ path : dir
122
121
123
122
- name : Deploy to GitHub Pages
124
123
id : deployment
You can’t perform that action at this time.
0 commit comments