Skip to content

Commit 5c72c71

Browse files
committed
Fixed zipping content
1 parent ce7dfb4 commit 5c72c71

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-docs.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Deploy Writerside + CodeLabs
22

33
on:
44
push:
5-
branches: [ "dev" ]
5+
branches: ["dev"]
66
workflow_dispatch:
77

88
permissions:
@@ -77,7 +77,7 @@ jobs:
7777

7878
# Zip the combined Writerside + CodeLabs content
7979
- name: Zip combined content
80-
run: zip -r combined-docs.zip dir
80+
run: cd dir && zip -r ../combined-docs.zip .
8181

8282
# Save the ZIP artifact with combined Writerside + CodeLabs content
8383
- name: Save combined artifact with Writerside and CodeLabs
@@ -91,7 +91,6 @@ jobs:
9191
environment:
9292
name: github-pages
9393
url: ${{ steps.deployment.outputs.page_url }}
94-
# Requires build job results
9594
needs: build
9695
runs-on: ubuntu-latest
9796

@@ -114,11 +113,11 @@ jobs:
114113
- name: Setup Pages
115114
uses: actions/[email protected]
116115

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
119118
uses: actions/[email protected]
120119
with:
121-
path: dir/** # This uploads all the contents of 'dir/' to the root
120+
path: dir
122121

123122
- name: Deploy to GitHub Pages
124123
id: deployment

0 commit comments

Comments
 (0)