Repository navigation
deploy: bump actions to Node 24 releases (checkout v7, setup-python v… #319
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| # Trigger on changes to the source repo (requires repository_dispatch or manual trigger) | |
| repository_dispatch: | |
| types: [docs-updated] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout PlanExe-docs | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Checkout PlanExe2 (source) | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: PlanExeOrg/PlanExe2 | |
| path: planexe-source | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Build documentation | |
| run: | | |
| PLANEXE_REPO=planexe-source DOCS_SOURCE_DIR=docs/website python build.py | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./site | |
| cname: docs.planexe.org |