From da4a635dc813c8f6d85705ecd4fe5859c36f07b1 Mon Sep 17 00:00:00 2001 From: Stefan Charsley Date: Wed, 17 Jan 2024 00:45:41 +1300 Subject: [PATCH 1/4] Update builds.yml Signed-off-by: Stefan Charsley --- .github/workflows/builds.yml | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 461a8c92c9..53de3f0828 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -2,7 +2,11 @@ name: Builds on: push: + paths-ignore: + - 'Source/Docs/**' pull_request: + paths-ignore: + - 'Source/Docs/**' permissions: contents: write @@ -165,38 +169,6 @@ jobs: name: macos-build-artifact path: bin - generate-docs: - name: Generate Documentation - runs-on: ubuntu-latest - timeout-minutes: 15 - if: github.event_name == 'push' && github.repository == 'mosa/MOSA-Project' && github.ref == 'refs/heads/master' - steps: - - name: Set python3.11 - uses: actions/setup-python@v4 - with: - python-version: '3.11' - - name: Checkout - uses: actions/checkout@v3 - with: - submodules: recursive - - name: Update package repository - run: sudo apt-get -y -o Acquire::Check-Valid-Until=false update - - name: Install Graphviz - run: sudo apt-get install -y graphviz - - name: Install Sphinx dependencies - run: pip3 install sphinx sphinxcontrib.httpdomain sphinx-prompt sphinx_rtd_theme sphinx-tabs - - name: Generate HTML website - run: sphinx-build -b html Source/Docs sphinx-docs - - name: Copy CNAME file - run: cp Source/Docs/CNAME sphinx-docs/ - - name: Copy .nojekyll file - run: cp Source/Docs/.nojekyll sphinx-docs/ - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: sphinx-docs - branch: docs - windows-unit-testing: strategy: matrix: From 37ac69259f75c6eeb88bc64f25cc7a11fa711f60 Mon Sep 17 00:00:00 2001 From: Stefan Charsley Date: Wed, 17 Jan 2024 01:01:18 +1300 Subject: [PATCH 2/4] Update builds.yml Signed-off-by: Stefan Charsley --- .github/workflows/builds.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 53de3f0828..a3090e8386 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -74,7 +74,7 @@ jobs: windows-build-packaging: name: Windows Build Packaging - needs: [windows-build, linux-build, macos-build, generate-docs, windows-unit-testing, linux-unit-testing, macos-unit-testing, windows-demo-testing, linux-demo-testing, macos-demo-testing] + needs: [windows-build, linux-build, macos-build, windows-unit-testing, linux-unit-testing, macos-unit-testing, windows-demo-testing, linux-demo-testing, macos-demo-testing] runs-on: windows-latest timeout-minutes: 15 if: github.event_name == 'push' && github.repository == 'mosa/MOSA-Project' && github.ref == 'refs/heads/master' From 674dc99358d53edf13ff163c6c5be7d338163361 Mon Sep 17 00:00:00 2001 From: Stefan Charsley Date: Wed, 17 Jan 2024 01:09:25 +1300 Subject: [PATCH 3/4] Create docs.yaml Signed-off-by: Stefan Charsley --- .github/workflows/docs.yaml | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/docs.yaml diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml new file mode 100644 index 0000000000..8000ecc436 --- /dev/null +++ b/.github/workflows/docs.yaml @@ -0,0 +1,49 @@ +name: Docs + +on: + push: + paths: + - 'Source/Docs/**' + pull_request: + paths: + - 'Source/Docs/**' + +permissions: + contents: write + +env: + BUILD_VERSION: 2.5.1.${{ github.run_number }} + +jobs: + + generate-docs: + name: Generate Documentation + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Set python3.11 + uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Update package repository + run: sudo apt-get -y -o Acquire::Check-Valid-Until=false update + - name: Install Graphviz + run: sudo apt-get install -y graphviz + - name: Install Sphinx dependencies + run: pip3 install sphinx sphinxcontrib.httpdomain sphinx-prompt sphinx_rtd_theme sphinx-tabs + - name: Generate HTML website + run: sphinx-build -b html Source/Docs sphinx-docs + - name: Copy CNAME file + run: cp Source/Docs/CNAME sphinx-docs/ + - name: Copy .nojekyll file + run: cp Source/Docs/.nojekyll sphinx-docs/ + - name: Deploy to GitHub Pages + if: github.event_name == 'push' && github.repository == 'mosa/MOSA-Project' && github.ref == 'refs/heads/master' + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: sphinx-docs + branch: docs From 16e047650fc0f77467a763f8a5f3675ae9b3d2ff Mon Sep 17 00:00:00 2001 From: Stefan Charsley Date: Wed, 17 Jan 2024 01:12:35 +1300 Subject: [PATCH 4/4] fix extension --- .github/workflows/{docs.yaml => docs.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{docs.yaml => docs.yml} (100%) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yml similarity index 100% rename from .github/workflows/docs.yaml rename to .github/workflows/docs.yml