Skip to content

Commit

Permalink
ci: 🔑 add GitHub App token creation for mkdocs and install mkdocs-mat…
Browse files Browse the repository at this point in the history
…erial-insiders dependency
  • Loading branch information
onuralpszr committed Jan 8, 2025
1 parent a61a6c7 commit 1fce071
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,21 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: 🔑 Create GitHub App token (mkdocs)
id: mkdocs_token
uses: actions/create-github-app-token@c1a285145b9d317df6ced56c09f525b5c2b6f755 # v1.11.1
with:
app-id: ${{ secrets.MKDOCS_APP_ID }}
private-key: ${{ secrets.MKDOCS_PEM }}
owner: roboflow
repositories: mkdocs-material-insiders

- name: 🏗️ Install dependencies
run: uv pip install -r pyproject.toml --extra docs
run: |
uv pip install -r pyproject.toml --extra docs
# Install mkdocs-material-insiders using the GitHub App token
uv pip install "git+https://roboflow:${{ steps.mkdocs_token.outputs.token }}@github.com/roboflow/[email protected]#egg=mkdocs-material[imaging]"
- name: 🧪 Test Docs Build
run: uv run mkdocs build --verbose

0 comments on commit 1fce071

Please sign in to comment.