Skip to content

Add docs for adding new enviroment #12

Add docs for adding new enviroment

Add docs for adding new enviroment #12

Workflow file for this run

name: Build and deploy docs
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
working-directory: ./docs
run: pip install -r requirements.txt
- name: Build docs
working-directory: ./docs
run: mkdocs build
- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/site/
name: site
deploy:
needs: build
if: github.event_name != 'pull_request' && github.ref_name == 'main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4