From 9587439f8d20466731f0e96839fd4971141268ec Mon Sep 17 00:00:00 2001 From: Onuralp SEZER Date: Wed, 8 Jan 2025 23:58:17 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=94=91=20add=20GitHub=20App=20token?= =?UTF-8?q?=20creation=20for=20mkdocs=20and=20install=20mkdocs-material-in?= =?UTF-8?q?siders=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-docs.yml | 16 ++++++++++++++-- .github/workflows/test-doc.yml | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 1a0fd0a51..e05fcf249 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -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/mkdocs-material-insiders.git@9.5.49-insiders-4.53.14#egg=mkdocs-material[imaging]" - name: โš™๏ธ Configure git for github-actions run: | diff --git a/.github/workflows/test-doc.yml b/.github/workflows/test-doc.yml index 20d50bed7..caa8a699a 100644 --- a/.github/workflows/test-doc.yml +++ b/.github/workflows/test-doc.yml @@ -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/mkdocs-material-insiders.git@9.5.49-insiders-4.53.14#egg=mkdocs-material[imaging]" + - name: ๐Ÿงช Test Docs Build run: uv run mkdocs build --verbose