From d8d5321c26cd83c03e598dfac2078449a2830ca5 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 7 Jul 2020 00:08:42 -0700 Subject: [PATCH] Added docsgen github action. --- .github/workflows/docsgen.yml | 52 +++++++++++++++++++++++++++++++++++ version.scad | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docsgen.yml diff --git a/.github/workflows/docsgen.yml b/.github/workflows/docsgen.yml new file mode 100644 index 0000000..8cb1e66 --- /dev/null +++ b/.github/workflows/docsgen.yml @@ -0,0 +1,52 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. Triggers the workflow on push events but only for the master branch +on: + push: + branches: + - master + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + GenerateDocs: + # The type of runner that the job will run on + runs-on: macos-10.15 + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Wiki Checkout + env: + GH_PAT: ${{ secrets.GH_PAT }} + run: | + cd $GITHUB_WORKSPACE + git clone https://${GH_PAT}@github.com/revarbat/BOSL2.wiki.git + cd BOSL2.wiki + git config user.name "revarbat" + git config user.email "revarbat@users.noreply.github.com" + + - name: Install Pillow + run: sudo pip3 install Pillow + + - name: Install OpenSCAD + run: | + curl -L -o OpenSCAD.dmg https://files.openscad.org/OpenSCAD-2019.05.dmg + hdiutil attach OpenSCAD.dmg + cp -a /Volumes/OpenSCAD/OpenSCAD.app /Applications/ + + - name: Generate Index + run: | + cd $GITHUB_WORKSPACE + ./scripts/genindex.sh + + - name: Generating Docs + env: + GH_PAT: ${{ secrets.GH_PAT }} + run: | + cd $GITHUB_WORKSPACE + export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE) + ./scripts/make_all_docs.sh -i && cd BOSL2.wiki && git add . && git commit -m "Wiki docs auto-regen." && git push --set-upstream https://${GH_PAT}@github.com/revarbat/BOSL2.wiki.git master + + diff --git a/version.scad b/version.scad index 6977ba5..8b7a336 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,385]; +BOSL_VERSION = [2,0,386]; // Section: BOSL Library Version Functions