Skip to content

Commit 3c0a848

Browse files
committed
Fixing zipping and unzipping artifacts
1 parent 7638920 commit 3c0a848

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/build-docs.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,40 @@ jobs:
7575
- name: Verify combined content in Writerside output
7676
run: ls -la dir
7777

78-
# Save combined Writerside + CodeLabs artifact
78+
# Zip the combined Writerside + CodeLabs content
79+
- name: Zip combined content
80+
run: zip -r combined-docs.zip dir
81+
82+
# Save the ZIP artifact with combined Writerside + CodeLabs content
7983
- name: Save combined artifact with Writerside and CodeLabs
8084
uses: actions/upload-artifact@v4
8185
with:
8286
name: docs
83-
path: dir
87+
path: combined-docs.zip
8488
retention-days: 7
8589

8690
deploy:
8791
environment:
8892
name: github-pages
8993
url: ${{ steps.deployment.outputs.page_url }}
90-
# Requires build job results
9194
needs: build
9295
runs-on: ubuntu-latest
9396

9497
steps:
98+
# Download the artifact (ZIP file)
9599
- name: Download artifact
96100
uses: actions/download-artifact@v4
97101
with:
98102
name: docs
99103

104+
# Unzip the artifact
105+
- name: Unzip artifact
106+
run: unzip combined-docs.zip -d dir
107+
108+
# Verify the unzipped content
109+
- name: Verify unzipped content
110+
run: ls -la dir
111+
100112
# Set up for GitHub Pages deployment
101113
- name: Setup Pages
102114
uses: actions/[email protected]

0 commit comments

Comments
 (0)