Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(docs): Drop GH pages deployment for docs #145

Merged
merged 3 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GALILEO_AUTOMATION_GITHUB_TOKEN }}

- name: Install poetry
run: pipx install poetry==${{ vars.POETRY_VERSION }}
Expand All @@ -28,25 +25,12 @@ jobs:
cache: "poetry"
cache-dependency-path: "pyproject.toml"

- name: Install Dependencies
- name: Build Docs
# Install all dependencies so that the docs can use the function and type signatures.
run: |
pipx install invoke
poetry install --all-extras --without test,dev

- name: Setup Git Config with SSH Signing Key
run: |
mkdir -vp ~/.ssh
echo -e "${{ secrets.GALILEO_AUTOMATION_SSH_PUBLIC_KEY }}" >>~/.ssh/signing_key.pub
echo -e "${{ secrets.GALILEO_AUTOMATION_SSH_PRIVATE_KEY }}" >>~/.ssh/signing_key
git config --global gpg.format ssh
git config --global user.signingKey ~/.ssh/signing_key
git config --global commit.gpgsign true
git config --global user.email ci@rungalileo.io
git config --global user.name "galileo-automation"

- name: Build and Deploy Docs
run: poetry run mkdocs gh-deploy
invoke docs-build

- name: Publish Docs
uses: cloudflare/wrangler-action@v3
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ def type_check(ctx: Context) -> None:


@task
def docs_local_build(ctx: Context) -> None:
def docs_build(ctx: Context) -> None:
ctx.run("poetry run mkdocs build", echo=True)
Loading