- Notifications
You must be signed in to change notification settings - Fork386
Uniswap v4 support#312
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
name:Docs | |
on: | |
push: | |
branches:[ master ] | |
pull_request: | |
branches:[ master ] | |
jobs: | |
build: | |
runs-on:ubuntu-latest | |
steps: | |
-uses:actions/checkout@v2 | |
-name:Set up Python 3.8 | |
uses:actions/setup-python@v1 | |
with: | |
python-version:3.8 | |
-name:Install dependencies | |
run:| | |
python -m pip install --upgrade pip poetry | |
poetry config installer.modern-installationfalse | |
poetry install | |
-name:Docs | |
run:| | |
poetry run make docs | |
-name:Upload build | |
uses:actions/upload-artifact@v2-preview | |
with: | |
name:build | |
path:docs/_build/html | |
-name:add CNAME file | |
run:| | |
echo 'uniswap-python.com' > docs/_build/html/CNAME | |
-name:Deploy | |
uses:peaceiris/actions-gh-pages@v3 | |
if:github.ref == 'refs/heads/master' | |
with: | |
github_token:${{ secrets.GITHUB_TOKEN }} | |
publish_dir:docs/_build/html |