mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Enable manual forced docsgen.
This commit is contained in:
parent
697230b704
commit
8f138be8aa
2 changed files with 51 additions and 6 deletions
8
.github/workflows/docsgen.yml
vendored
8
.github/workflows/docsgen.yml
vendored
|
@ -1,12 +1,8 @@
|
|||
name: DocsGen
|
||||
name: Docs
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
branches: [master]
|
||||
types: [closed]
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
GenerateDocs:
|
||||
|
|
49
.github/workflows/forced_docsgen.yml
vendored
Normal file
49
.github/workflows/forced_docsgen.yml
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
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
|
||||
run: sudo apt-get install -y python3-pip python3-dev python3-setuptools python3-pil gifsicle
|
||||
|
||||
- name: Install openscad-docsgen
|
||||
run: sudo pip3 install openscad_docsgen
|
||||
|
||||
- name: Install gifsicle
|
||||
run: sudo pip3 install gifsicle
|
||||
|
||||
- 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
|
||||
|
||||
- name: Generating Docs
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
||||
echo "::add-matcher::.github/openscad_docsgen.json"
|
||||
openscad-docsgen -ticmIf *.scad
|
||||
cd BOSL2.wiki
|
||||
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
|
||||
|
Loading…
Reference in a new issue