Skip to content

📖 Publish Docs

📖 Publish Docs #3

name: 📖 Publish Docs
on:
push:
paths:
- src/**
branches: [main]
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:
jobs:
build:
uses: hotosm/gh-workflows/.github/workflows/[email protected]
with:
command: build
output_path: dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4