|
20 | 20 | default: true |
21 | 21 |
|
22 | 22 | permissions: |
23 | | - contents: write # Need write to push to gh-pages branch |
24 | | - pages: write |
25 | | - id-token: write |
| 23 | + contents: read |
26 | 24 |
|
27 | 25 | # Allow only one concurrent deployment |
28 | 26 | concurrency: |
|
35 | 33 | environment: |
36 | 34 | name: github-pages |
37 | 35 | url: https://docs.humem.ai/arcadedb/ |
| 36 | + env: |
| 37 | + DOCS_REPO: humemai/humemai-docs |
| 38 | + DOCS_BRANCH: main |
38 | 39 |
|
39 | 40 | steps: |
40 | 41 | - name: Checkout repository |
|
63 | 64 | run: | |
64 | 65 | git config user.name "github-actions[bot]" |
65 | 66 | 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" |
66 | 68 |
|
67 | 69 | - name: Extract version from tag or input |
68 | 70 | if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' |
|
87 | 89 | MIKE_VERSION: ${{ steps.version.outputs.version }} |
88 | 90 | run: | |
89 | 91 | mike deploy --push --update-aliases --prefix arcadedb \ |
| 92 | + --remote humemai-docs --branch ${{ env.DOCS_BRANCH }} \ |
90 | 93 | ${{ steps.version.outputs.version }} latest \ |
91 | 94 | --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 |
93 | 98 |
|
94 | 99 | - name: Deploy with mike (not latest) |
95 | 100 | if: (github.event_name == 'workflow_dispatch' || github.event_name == 'push') && steps.version.outputs.set_latest != 'true' |
|
98 | 103 | MIKE_VERSION: ${{ steps.version.outputs.version }} |
99 | 104 | run: | |
100 | 105 | mike deploy --push --prefix arcadedb \ |
| 106 | + --remote humemai-docs --branch ${{ env.DOCS_BRANCH }} \ |
101 | 107 | ${{ steps.version.outputs.version }} \ |
102 | 108 | --title "${{ steps.version.outputs.version }}" |
0 commit comments