mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Separated tutorial and docs workflows.
This commit is contained in:
parent
46fde6f02e
commit
6d3943fc90
2 changed files with 51 additions and 48 deletions
49
.github/workflows/gen_docs.yml
vendored
Normal file
49
.github/workflows/gen_docs.yml
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
name: Regenerate Docs
|
||||
on: [workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
RegenerateDocs:
|
||||
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
|
||||
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil
|
||||
|
||||
- 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: Generate Docs
|
||||
uses: GabrielBB/xvfb-action@v1
|
||||
with:
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
||||
openscad-docsgen -f
|
||||
working-directory: ./ #optional
|
||||
options: #optional
|
||||
|
||||
- name: Upload Docs to Wiki
|
||||
uses: SwiftDocOrg/github-wiki-publish-action@v1
|
||||
with:
|
||||
path: "BOSL2.wiki"
|
||||
env:
|
||||
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
name: Manual Workflows
|
||||
name: Regenerate Tutorials
|
||||
on: [workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
GenerateTutorials:
|
||||
RegenerateTutorials:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -52,49 +52,3 @@ jobs:
|
|||
env:
|
||||
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
|
||||
|
||||
|
||||
GenerateDocs:
|
||||
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
|
||||
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil
|
||||
|
||||
- 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: Generate Docs
|
||||
uses: GabrielBB/xvfb-action@v1
|
||||
with:
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE
|
||||
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
|
||||
openscad-docsgen -f
|
||||
working-directory: ./ #optional
|
||||
options: #optional
|
||||
|
||||
- name: Upload Docs to Wiki
|
||||
uses: SwiftDocOrg/github-wiki-publish-action@v1
|
||||
with:
|
||||
path: "BOSL2.wiki"
|
||||
env:
|
||||
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
|
||||
|
Loading…
Reference in a new issue