Skip to content

Commit

Permalink
fix docs deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Sep 5, 2022
1 parent bdd0491 commit 63f36a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:

- run: make docs

- name: Store docs site
uses: actions/upload-artifact@v3
with:
name: docs
path: site

test:
name: test py${{ matrix.python }} with redis:${{ matrix.redis }} on ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -98,6 +104,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: get docs
uses: actions/download-artifact@v3
with:
name: docs
path: site

- name: set up python
uses: actions/setup-python@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ docs:
@echo "open file://`pwd`/docs/_build/html/index.html"

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

0 comments on commit 63f36a1

Please sign in to comment.