Skip to content

Commit

Permalink
Fix Pages deployment
Browse files Browse the repository at this point in the history
Contrary to the documentation, upload-pages-artifact does not actually
gzip-compress the tar it creates, and accordingly, deploy-pages is
unhappy with a compressed tarball. Make the necessary changes to produce
and upload an uncompressed tar instead.
  • Loading branch information
mwoehlke committed Mar 19, 2024
1 parent 1f5c7c4 commit 88f7c0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
if-no-files-found: error
name: github-pages
path: ${{github.workspace}}/cps-docs.tar.gz
path: ${{github.workspace}}/cps-docs.tar
deploy:
if: github.event.repository.default_branch == github.ref_name
needs: build
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ endif

SRCDIR ?= $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
OUTDIR ?= $(join $(SRCDIR),_site)
ARCHIVE ?= cps-docs.tar.gz
ARCHIVE ?= cps-docs.tar
SPHINXOPTS ?=

venv := $(notdir $(realpath $(shell $(POETRY) env info --path 2> $(--null))))

archive.flags += --create --gzip --verbose
archive.flags += --create --verbose
archive.flags += --file=$(ARCHIVE)
archive.flags += --directory=$(OUTDIR)
ifneq ($(OS),Windows_NT)
Expand Down

0 comments on commit 88f7c0c

Please sign in to comment.