Skip to content

Commit

Permalink
Merge pull request #407 from aurelio-labs/james/deploy-docs
Browse files Browse the repository at this point in the history
chore: change docs workflow temp
  • Loading branch information
jamescalam authored Sep 1, 2024
2 parents 72e660d + 2a5cd6d commit 04021ac
Show file tree
Hide file tree
Showing 10 changed files with 2,968 additions and 693 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release Docs

on:
push:
tags:
- '*'
branches:
- main

jobs:
build-docs:
Expand Down Expand Up @@ -37,20 +37,22 @@ jobs:
cache: poetry
- name: Install dependencies
run: |
poetry install
pip install -r docs/source/requirements.txt
poetry install --all-extras
- name: Build docs
run: |
sphinx-build -M html docs/source docs/build
poetry run sphinx-build -M html docs/source docs/build
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
- name: Upload Docs
id: upload-directory
uses: google-github-actions/upload-cloud-storage@v2
with:
path: docs/build/html
destination: docs-bucket-production/semantic-router
parent: false
run: |
gcloud storage rsync docs/build/html gs://docs-bucket-production/semantic-router --recursive --delete-unmatched-destination-objects
# - name: Upload Docs
# id: upload-directory
# uses: google-github-actions/upload-cloud-storage@v2
# with:
# path: docs/build/html
# destination: docs-bucket-production/semantic-router
# parent: false
Loading

0 comments on commit 04021ac

Please sign in to comment.