Skip to content

Commit

Permalink
do preview deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lalmei committed Nov 25, 2024
1 parent 9f7de3b commit 0243f1a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ name: docs
on: [push, pull_request]

permissions:
contents: write
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false


jobs:
deploy:
enviroment:
name: documenation
url: ${{steps.deployement.outputs.page_url}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -40,3 +50,12 @@ jobs:
- run: uv run mkdocs build --config-file config/mkdocs.yml

- run: uv run mkdocs gh-deploy --force --config-file config/mkdocs.yml

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'site/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 0243f1a

Please sign in to comment.