Skip to content

feat: Modified the Github Actions workflow for doc deployment #1

feat: Modified the Github Actions workflow for doc deployment

feat: Modified the Github Actions workflow for doc deployment #1

Workflow file for this run

name: Deploy Thing Description Specification to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
env:
DOCS_OUTPUT_PATH: resources/gens
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install Dependencies using UV
run: |
pip install uv
uv pip install -e .
- name: Generate Thing Description Specification
run: |
wotis generate-wot-resources -d
- name: Upload Artifacts for Deployment
uses: actions/upload-pages-artifact@v3
with:
path: ${{ env.DOCS_OUTPUT_PATH }}
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4