Skip to content

Commit

Permalink
ci: Attempt to update deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed May 24, 2024
1 parent 8bf54c2 commit 04215e1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
42 changes: 33 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ __pycache__
deps
tts
image
site

# Home Assistant
secrets.yaml
Expand Down

0 comments on commit 04215e1

Please sign in to comment.