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 9587439
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,20 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: 📦 Install dependencies
run: uv pip install -r pyproject.toml --extra docs
- 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
# 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: ⚙️ Configure git for github-actions
run: |
Expand Down
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 9587439

Please sign in to comment.