Skip to content

Commit 63f36a1

Browse files
committed
fix docs deploy
1 parent bdd0491 commit 63f36a1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/ci.yml

+12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ jobs:
4141

4242
- run: make docs
4343

44+
- name: Store docs site
45+
uses: actions/upload-artifact@v3
46+
with:
47+
name: docs
48+
path: site
49+
4450
test:
4551
name: test py${{ matrix.python }} with redis:${{ matrix.redis }} on ${{ matrix.os }}
4652
strategy:
@@ -98,6 +104,12 @@ jobs:
98104
steps:
99105
- uses: actions/checkout@v2
100106

107+
- name: get docs
108+
uses: actions/download-artifact@v3
109+
with:
110+
name: docs
111+
path: site
112+
101113
- name: set up python
102114
uses: actions/setup-python@v4
103115
with:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ docs:
6161
@echo "open file://`pwd`/docs/_build/html/index.html"
6262

6363
.PHONY: publish-docs
64-
publish-docs: docs
64+
publish-docs:
6565
cd docs/_build/ && cp -r html site && zip -r site.zip site
6666
@curl -H "Content-Type: application/zip" -H "Authorization: Bearer ${NETLIFY}" \
6767
--data-binary "@docs/_build/site.zip" https://api.netlify.com/api/v1/sites/arq-docs.netlify.com/deploys

0 commit comments

Comments
 (0)