BOSL2/.github/workflows/forced_docsgen.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

2021-05-31 04:10:17 +00:00
name: FDocs
on:
workflow_dispatch:
branches: [master]
jobs:
GenerateDocs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout Wiki
uses: actions/checkout@v2
with:
repository: revarbat/BOSL2.wiki
path: BOSL2.wiki
- name: Apt Update
run: sudo apt update
- name: Install Packages
2021-05-31 22:32:56 +00:00
run: sudo apt-get install -y python3-pip python3-dev python3-setuptools python3-pil
2021-05-31 04:10:17 +00:00
- name: Install openscad-docsgen
run: sudo pip3 install openscad_docsgen
- name: Install OpenSCAD
run: |
cd $GITHUB_WORKSPACE
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
sudo chmod +x /usr/local/bin/openscad
2021-05-31 23:50:56 +00:00
- name: Generating Docs Headless
uses: GabrielBB/xvfb-action@v1
with:
working-directory: $GITHUB_WORKSPACE
run: |
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
echo "::add-matcher::.github/openscad_docsgen.json"
openscad-docsgen -ticmIf *.scad
- name: Commit Wiki Docs
2021-05-31 04:10:17 +00:00
run: |
2021-05-31 23:50:56 +00:00
cd $GITHUB_WORKSPACE/BOSL2.wiki
2021-05-31 04:10:17 +00:00
git config user.name github-actions
git config user.email github-actions@github.com
git add --all
git commit -m "Wiki docs auto-regen." && git push || true