-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new github action to publish docs from main branch
Signed-off-by: cribeul <christian.perwass@de.bosch.com>
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Generate Image-Render System Documentation (branch main) | ||
run-name: ${{ github.actor }} is generating documentation from branch 'main' 🚀 | ||
on: [workflow_dispatch] | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
Generate-Image-Render-Documentation: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- run: echo "🎉 The job was triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
|
||
- run: pip install -r data/wf-gen-docs/requirements.txt | ||
|
||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | ||
|
||
- name: Clone all repos | ||
run: | | ||
cd repos | ||
vcs import < repos-release.yaml | ||
- name: List cloned repositories repository | ||
run: ls repos | ||
|
||
- name: Install Functional JSON | ||
run: | | ||
cd repos/functional-json | ||
pip install . | ||
- name: Install Catharsys Setup | ||
run: pip install -e . | ||
|
||
- name: Build Documentation | ||
run: cathy build docs -I | ||
|
||
- name: Copy index referrer | ||
run: cp data/wf-gen-docs/index.html ./docs/build/. | ||
|
||
- name: List docs folder | ||
run: ls docs/build | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/build/ | ||
force_orphan: true | ||
|
||
- run: echo "🍏 This job's status is ${{ job.status }}." |