Skip to content

Commit

Permalink
updated sphinx build and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
expeditionengineer committed Sep 4, 2024
1 parent 32e886d commit 5cf5c26
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 82 deletions.
49 changes: 13 additions & 36 deletions .github/workflows/sphinx-pages.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,23 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "gh-pages2" ]
pull_request:
branches: [ "main" ]

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

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
name: Build and Deploy
on: [push]
permissions:
contents: write
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout 🛎️
uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser sphinxcontrib.mermaid
pip install sphinx sphinx_rtd_theme myst_parser sphinxcontrib-mermaid
- name: Sphinx build
run: |
sphinx-build webcentral/doc/06_sphinx/source _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
sphinx-build webcentral/doc/06_sphinx _build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
folder: build # The folder the action should deploy.
46 changes: 0 additions & 46 deletions .github/workflows/static.yml

This file was deleted.

0 comments on commit 5cf5c26

Please sign in to comment.