Skip to content

Commit

Permalink
add deploy job for github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazs-flare committed Mar 15, 2024
1 parent 6c6ac7e commit c1fc19b
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,31 @@ name: deploy-docs
on:
push:
branches:
- main
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install -r requirements.txt
- run: mkdocs build --strict

deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install -r requirements.txt
- run: mkdocs build --strict
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
path: public

0 comments on commit c1fc19b

Please sign in to comment.