Skip to content

Commit

Permalink
CI: publish-webpage: pack webpage before uploading it as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
kgugala committed Dec 25, 2024
1 parent 9d6bf35 commit 6a67125
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-webpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
rm -rf public.new/html/main/docs_rendered
mkdir -p public.new/html/main/docs_rendered
mv ./docs_rendered/* public.new/html/main/docs_rendered
tar -xf public.new.tar.gz public.new
- name: Update webpage PR
if: github.event_name == 'pull_request'
Expand All @@ -92,7 +93,8 @@ jobs:
# use docs from the artifact
rm -rf public.new/html/dev/${{ github.event.number }}/docs_rendered
mkdir -p public.new/html/dev/${{ github.event.number }}/docs_rendered
mv -arf ./docs_rendered/* public.new/html/dev/${{ github.event.number }}/docs_rendered
mv ./docs_rendered/* public.new/html/dev/${{ github.event.number }}/docs_rendered
tar -acf public.new.tar.gz public.new
- name: Add redirect index page
run: |
Expand Down Expand Up @@ -122,4 +124,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: webpage
path: ./public.new
path: ./public.new.tar.gz

0 comments on commit 6a67125

Please sign in to comment.