Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
souradipp76 committed Nov 24, 2024
1 parent f2ba81a commit 4e929fd
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/deploy_mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ on:
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
Expand All @@ -14,6 +29,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v5

# Set up Python
- name: Setup Python
uses: actions/setup-python@v5
Expand All @@ -26,9 +44,6 @@ jobs:
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material mkdocstrings-python
- name: Setup Pages
uses: actions/configure-pages@v3

# Build the MkDocs site
- name: Build and Publish MkDocs site
run: mkdocs gh-deploy

0 comments on commit 4e929fd

Please sign in to comment.