2020-07-07 07:08:42 +00:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
GenerateDocs:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-02-20 03:56:43 +00:00
|
|
|
- name: Checkout Wiki
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2021-05-16 19:52:31 +00:00
|
|
|
repository: revarbat/BOSL2.wiki
|
2021-02-20 03:56:43 +00:00
|
|
|
path: BOSL2.wiki
|
2020-07-07 07:08:42 +00:00
|
|
|
|
2021-02-20 04:33:37 +00:00
|
|
|
- name: Install gifsicle
|
2021-02-20 04:39:44 +00:00
|
|
|
run: brew install gifsicle
|
2021-02-20 04:33:37 +00:00
|
|
|
|
2020-07-07 07:08:42 +00:00
|
|
|
- name: Install Pillow
|
|
|
|
run: sudo pip3 install Pillow
|
|
|
|
|
2021-02-20 03:56:43 +00:00
|
|
|
- name: Install Docsgen
|
|
|
|
run: sudo pip3 install openscad_docsgen
|
|
|
|
|
2020-07-07 07:08:42 +00:00
|
|
|
- name: Install OpenSCAD
|
|
|
|
run: |
|
2021-05-07 23:13:33 +00:00
|
|
|
curl -L -o OpenSCAD.dmg https://files.openscad.org/snapshots/OpenSCAD-2021.05.07.dmg
|
2020-07-07 07:08:42 +00:00
|
|
|
hdiutil attach OpenSCAD.dmg
|
|
|
|
cp -a /Volumes/OpenSCAD/OpenSCAD.app /Applications/
|
|
|
|
|
|
|
|
- name: Generating Docs
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
|
|
|
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
2021-03-30 23:50:30 +00:00
|
|
|
echo "::add-matcher::.github/openscad_docsgen.json"
|
2021-04-17 10:50:02 +00:00
|
|
|
openscad-docsgen -m -i -t -c -I *.scad
|
2021-02-20 03:56:43 +00:00
|
|
|
cd BOSL2.wiki
|
2021-02-20 04:02:24 +00:00
|
|
|
git config user.name github-actions
|
|
|
|
git config user.email github-actions@github.com
|
2021-02-20 03:56:43 +00:00
|
|
|
git add --all
|
2021-02-27 02:01:34 +00:00
|
|
|
git commit -m "Wiki docs auto-regen." && git push || true
|
2020-07-07 07:08:42 +00:00
|
|
|
|
2021-02-20 03:56:43 +00:00
|
|
|
- name: Bump Release Version
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
|
|
|
./scripts/increment_version.sh
|
2021-02-20 04:02:24 +00:00
|
|
|
git config user.name github-actions
|
|
|
|
git config user.email github-actions@github.com
|
2021-02-20 03:56:43 +00:00
|
|
|
git add version.scad
|
2021-02-27 02:01:34 +00:00
|
|
|
git commit -m "Bump release version." && git push || true
|
2020-07-07 07:08:42 +00:00
|
|
|
|