From 23c1f13ae2a24689cacca01626c1be37755206a9 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 15:17:48 +0000 Subject: [PATCH] fix(ci): Update GitHub Actions versions and add permissions This commit updates the `.github/workflows/mkdocs.yml` file to use the latest versions of the `actions/checkout` and `actions/setup-python` actions. Key changes: - Upgraded `actions/checkout` from `v2` to `v4`. - Upgraded `actions/setup-python` from `v2` to `v5`. - Pinned the Python version to `'3.11'`. - Added `permissions: contents: write` to the `deploy` job to ensure the workflow has the necessary permissions to publish to GitHub Pages. --- .github/workflows/mkdocs.yml | 17 +++++++++++++++++ docs/{README.md => index.md} | 0 mkdocs.yml | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 .github/workflows/mkdocs.yml rename docs/{README.md => index.md} (100%) create mode 100644 mkdocs.yml diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml new file mode 100644 index 0000000..9c24e0c --- /dev/null +++ b/.github/workflows/mkdocs.yml @@ -0,0 +1,17 @@ +name: mkdocs +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force diff --git a/docs/README.md b/docs/index.md similarity index 100% rename from docs/README.md rename to docs/index.md diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..b22daf7 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,4 @@ +site_name: Borg Data Collector +repo_url: https://github.com/Snider/Borg +theme: + name: material