Skip to content

Commit a166464

Browse files
committed
Deploy docs to humemai-docs
1 parent e94a098 commit a166464

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/deploy-python-docs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ on:
2020
default: true
2121

2222
permissions:
23-
contents: write # Need write to push to gh-pages branch
24-
pages: write
25-
id-token: write
23+
contents: read
2624

2725
# Allow only one concurrent deployment
2826
concurrency:
@@ -35,6 +33,9 @@ jobs:
3533
environment:
3634
name: github-pages
3735
url: https://docs.humem.ai/arcadedb/
36+
env:
37+
DOCS_REPO: humemai/humemai-docs
38+
DOCS_BRANCH: main
3839

3940
steps:
4041
- name: Checkout repository
@@ -63,6 +64,7 @@ jobs:
6364
run: |
6465
git config user.name "github-actions[bot]"
6566
git config user.email "github-actions[bot]@users.noreply.github.com"
67+
git remote add humemai-docs "https://x-access-token:${{ secrets.HUMEMAI_DOCS_TOKEN }}@github.com/${{ env.DOCS_REPO }}.git"
6668
6769
- name: Extract version from tag or input
6870
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
@@ -87,9 +89,12 @@ jobs:
8789
MIKE_VERSION: ${{ steps.version.outputs.version }}
8890
run: |
8991
mike deploy --push --update-aliases --prefix arcadedb \
92+
--remote humemai-docs --branch ${{ env.DOCS_BRANCH }} \
9093
${{ steps.version.outputs.version }} latest \
9194
--title "${{ steps.version.outputs.version }} (latest)"
92-
mike set-default --push --prefix arcadedb latest
95+
mike set-default --push --prefix arcadedb \
96+
--remote humemai-docs --branch ${{ env.DOCS_BRANCH }} \
97+
latest
9398
9499
- name: Deploy with mike (not latest)
95100
if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && steps.version.outputs.set_latest != 'true'
@@ -98,5 +103,6 @@ jobs:
98103
MIKE_VERSION: ${{ steps.version.outputs.version }}
99104
run: |
100105
mike deploy --push --prefix arcadedb \
106+
--remote humemai-docs --branch ${{ env.DOCS_BRANCH }} \
101107
${{ steps.version.outputs.version }} \
102108
--title "${{ steps.version.outputs.version }}"

0 commit comments

Comments
 (0)