Skip to content

Commit 7b13000

Browse files
committed
Create build artifacts archive for demo site
1 parent 21ae3ad commit 7b13000

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ jobs:
8888
- run: wget --mirror --page-requisites --no-parent --no-verbose http://localhost:8000/django-pattern-library/demo/
8989
- run: mv localhost:8000/django-pattern-library/demo site
9090
# Demo render_patterns.
91-
- run: poetry run django-admin render_patterns --settings=tests.settings.production --pythonpath=. --wrap-fragments --output=site/dpl-rendered-patterns
91+
- run: poetry run django-admin render_patterns --settings=tests.settings.production --pythonpath=. --wrap-fragments --output=site/dpl-rendered-patterns 2>&1 >/dev/null | tee dpl-list.txt
92+
# Create an archive of render_patterns output so the build artifacts can be inspected easily.
93+
- run: mv dpl-list.txt site/dpl-rendered-patterns && tar -czvf site/dpl-rendered-patterns.tar.gz site/dpl-render-patterns
9294
# Package build, incl. publishing an experimental pre-release via GitHub Pages for builds on `main`.
9395
- run: cat pyproject.toml | awk '{sub(/^version = .+/,"version = \"0.0.0.dev\"")}1' > pyproject.toml.tmp && mv pyproject.toml.tmp pyproject.toml
9496
- run: poetry build

0 commit comments

Comments
 (0)