mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 15:26:46 -06:00
Merge the doc builds into one action.
This will reduce the CPU time by avoiding multiple install/update cycles.
This commit is contained in:
parent
01ef5c664f
commit
fb6e59bab8
34
.github/workflows/check-doc-build.yml
vendored
34
.github/workflows/check-doc-build.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
name: Check documentation build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "master" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "master" ]
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install platform dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y build-essential python3-dev python3-pip libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev
|
|
||||||
|
|
||||||
- name: Install Python dependencies
|
|
||||||
run: |
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
sudo pip install -r requirements.txt
|
|
||||||
sudo pip install "pyOpenSSL>=23.*" sphinx sphinxcontrib-youtube
|
|
||||||
|
|
||||||
- name: Check the documentation
|
|
||||||
run: make docs
|
|
@ -1,4 +1,4 @@
|
|||||||
name: Check PDF build
|
name: Check documentation builds
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -24,12 +24,30 @@ jobs:
|
|||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y build-essential python3-dev python3-pip libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev latexmk texlive-latex-recommended tex-gyre texlive-latex-extra
|
sudo apt install -y build-essential python3-dev python3-pip libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev latexmk texlive-latex-recommended tex-gyre texlive-latex-extra
|
||||||
|
|
||||||
- name: Install Python requirements
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo pip install --upgrade pip
|
sudo pip install --upgrade pip
|
||||||
sudo pip install -r requirements.txt
|
sudo pip install -r requirements.txt
|
||||||
sudo pip install "pyOpenSSL>=23.*" sphinx sphinxcontrib-youtube
|
sudo pip install "pyOpenSSL>=23.*" sphinx sphinxcontrib-youtube
|
||||||
|
|
||||||
|
- name: Check the HTML build
|
||||||
|
run: make docs
|
||||||
|
|
||||||
|
- name: Archive HTML
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: pgadmin4-html-build-output
|
||||||
|
path: docs/en_US/_build/html/*
|
||||||
|
|
||||||
|
- name: Check the ePub build
|
||||||
|
run: make docs-epub
|
||||||
|
|
||||||
|
- name: Archive ePub
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: pgadmin4-epub-build-output
|
||||||
|
path: docs/en_US/_build/epub/pgAdmin4.epub
|
||||||
|
|
||||||
- name: Check the PDF build
|
- name: Check the PDF build
|
||||||
run: make docs-pdf
|
run: make docs-pdf
|
||||||
|
|
40
.github/workflows/check-epub-build.yml
vendored
40
.github/workflows/check-epub-build.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
name: Check ePub build
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "master" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "master" ]
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install platform dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y build-essential python3-dev python3-pip libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev
|
|
||||||
|
|
||||||
- name: Install Python dependencies
|
|
||||||
run: |
|
|
||||||
sudo pip install --upgrade pip
|
|
||||||
sudo pip install -r requirements.txt
|
|
||||||
sudo pip install "pyOpenSSL>=23.*" sphinx sphinxcontrib-youtube
|
|
||||||
|
|
||||||
- name: Check the ePub build
|
|
||||||
run: make docs-epub
|
|
||||||
|
|
||||||
- name: Archive ePub
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: pgadmin4-epub-build-output
|
|
||||||
path: docs/en_US/_build/epub/pgAdmin4.epub
|
|
Loading…
Reference in New Issue
Block a user