Skip to content

Commit

Permalink
👷 Move docs to cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed May 20, 2024
1 parent ec0280f commit ea86a49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,12 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Deploy docs
if: matrix.python-version == '3.11'
id: netlify
uses: nwtgck/actions-netlify@v1.2
- uses: cloudflare/pages-action@v1
id: cloudflare
with:
publish-dir: "_build/html"
production-deploy: ${{ github.event_name == 'push' }}
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 472bdad691b4483dea759eadb37110bd
projectName: nbproject
directory: "_build/html"
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: "3"
2 changes: 0 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import nox
from laminci import move_built_docs_to_docs_slash_project_slug
from laminci.nox import build_docs, run_pre_commit, run_pytest

nox.options.default_backend = "none"
Expand All @@ -15,4 +14,3 @@ def build(session):
session.run(*"pip install .[dev]".split())
run_pytest(session)
build_docs(session)
move_built_docs_to_docs_slash_project_slug()

0 comments on commit ea86a49

Please sign in to comment.