From 04215e1b47ef5d6cd0daa4f89ab8f45b4dc21625 Mon Sep 17 00:00:00 2001 From: Denys Dovhan Date: Fri, 24 May 2024 15:25:34 +0300 Subject: [PATCH] ci: Attempt to update deployment --- .github/workflows/docs.yml | 42 ++++++++++++++++++++++++++++++-------- .gitignore | 1 + 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 22570cd..6591620 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,20 +1,29 @@ name: Docs on: push: - branches: - - main + branches: [$default-branch] + workflow_dispatch: permissions: - contents: write + contents: read + pages: write + id-token: write + +concurrency: + group: 'pages' + cancel-in-progress: false jobs: - deploy: - name: Deploy documentation + build: + name: Build mkdocs documentation runs-on: ubuntu-latest steps: - name: Checkout Repo uses: actions/checkout@v4 + - name: Configure GitHub Pages + uses: actions/configure-pages@v3 + - name: Set up Python uses: actions/setup-python@v5 with: @@ -23,7 +32,22 @@ jobs: - name: Install mkdocs-material run: pip install mkdocs-material - - name: Deploy Documentation - run: | - mkdocs gh-deploy --force - mkdocs --version + - name: Build Documentation + run: mkdocs build --verbose + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: site + + deploy: + name: Deploy documentation + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 8d3c70c..2745725 100755 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ __pycache__ deps tts image +site # Home Assistant secrets.yaml