Skip to content

Commit

Permalink
gh: split the docs and Fastvdma build to separate workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktoria Kuna <[email protected]>
  • Loading branch information
wkkuna committed Jan 31, 2024
1 parent 0e4d89a commit d520ad2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,3 @@ jobs:
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
sudo apt update && sudo apt install -y sbt
make testall
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup documentation environment
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt update -qq
sudo apt install -y make python3 python3-pip
pip3 install -r docs/requirements.txt
- name: Build the documentation
run: |
SPHINXOPTS="-A conf_py_path=$DOCS_DIR/$SOURCEDIR/ -A commit=$CI_BUILD_REF -A branch=$CI_BUILD_REF_NAME" make html
make linkcheck
cp docs/*.png build/html
- name: "Upload artifact: Sphinx HTML"
uses: actions/upload-artifact@v3
with:
name: Documentation-HTML
path: build/html

- name: Publish site to GitHub Pages
if: github.event_name != 'pull_request'
run: |
cd build/html
touch .nojekyll
git init
cp ../../.git/config ./.git/config
git add .
git config --local user.email "BuildTheDocs@GitHubActions"
git config --local user.name "GitHub Actions"
git commit -a -m "update ${{ github.sha }}"
git push -u origin +HEAD:gh-pages
45 changes: 45 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Documentation
on:
pull_request:
push:
branches:
- main

jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup documentation environment
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt update -qq
sudo apt install -y make python3 python3-pip
pip3 install -r docs/requirements.txt
- name: Build the documentation
run: |
SPHINXOPTS="-A conf_py_path=$DOCS_DIR/$SOURCEDIR/ -A commit=$CI_BUILD_REF -A branch=$CI_BUILD_REF_NAME" make html
make linkcheck
cp docs/*.png build/html
- name: "Upload artifact: Sphinx HTML"
uses: actions/upload-artifact@v3
with:
name: Documentation-HTML
path: build/html

- name: Publish site to GitHub Pages
if: github.event_name != 'pull_request'
run: |
cd build/html
touch .nojekyll
git init
cp ../../.git/config ./.git/config
git add .
git config --local user.email "BuildTheDocs@GitHubActions"
git config --local user.name "GitHub Actions"
git commit -a -m "update ${{ github.sha }}"
git push -u origin +HEAD:gh-pages

0 comments on commit d520ad2

Please sign in to comment.