2022-07-22 02:54:59 +00:00
|
|
|
name: Regenerate Tutorials
|
2022-07-22 01:54:34 +00:00
|
|
|
on: [workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
2022-07-22 02:54:59 +00:00
|
|
|
RegenerateTutorials:
|
2022-07-22 01:54:34 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Clone Wiki
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: revarbat/BOSL2.wiki
|
|
|
|
path: BOSL2.wiki
|
|
|
|
|
|
|
|
- name: Apt Update
|
|
|
|
run: sudo apt update
|
|
|
|
|
|
|
|
- name: Install Python dev
|
2022-07-22 04:35:58 +00:00
|
|
|
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil gifsicle
|
2022-07-22 01:54:34 +00:00
|
|
|
|
|
|
|
- name: Install OpenSCAD-DocsGen package.
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Tabs Check
|
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
|
|
|
./scripts/check_for_tabs.sh
|
|
|
|
|
2022-07-22 03:34:12 +00:00
|
|
|
- name: FooTest
|
2022-07-22 03:55:11 +00:00
|
|
|
env:
|
2022-07-22 04:16:10 +00:00
|
|
|
OPENSCADPATH: ${{ github.workspace }}/..
|
2022-07-22 03:34:12 +00:00
|
|
|
run: echo $OPENSCADPATH
|
|
|
|
|
2022-07-22 01:54:34 +00:00
|
|
|
- name: Generate Tutorials
|
2022-07-22 03:55:11 +00:00
|
|
|
uses: GabrielBB/xvfb-action@v1.6
|
|
|
|
env:
|
2022-07-22 04:16:10 +00:00
|
|
|
OPENSCADPATH: ${{ github.workspace }}/..
|
2022-07-22 01:54:34 +00:00
|
|
|
with:
|
2022-07-22 04:19:22 +00:00
|
|
|
run: openscad-mdimggen -f
|
2022-07-22 01:54:34 +00:00
|
|
|
|
|
|
|
- name: Upload Tutorials to Wiki
|
|
|
|
uses: SwiftDocOrg/github-wiki-publish-action@v1
|
|
|
|
with:
|
|
|
|
path: "BOSL2.wiki"
|
|
|
|
env:
|
|
|
|
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
|