Skip to content

Commit

Permalink
Merge pull request #23 from Wakoma/smart_doc
Browse files Browse the repository at this point in the history
Smart documentation for any Nimble configuration
  • Loading branch information
julianstirling authored May 9, 2024
2 parents 8250dca + 403d335 commit 5fe4214
Show file tree
Hide file tree
Showing 654 changed files with 3,461 additions and 630,688 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# SPDX-FileCopyrightText: 2023 Robin Vobruba <[email protected]>
# SPDX-FileCopyrightText: 2024 Andreas Kahler <[email protected]>
#
# SPDX-License-Identifier: Unlicense

name: Build

on: [push, pull_request]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:

name: Compile
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
uses: actions/checkout@v3
with:
submodules: true

- name: Fix checkout ownership
run: |
# HACK Workaround for bug:
# https://github.com/actions/runner/issues/2033
mkdir -p /home/runner/work/_temp/_github_home
printf "[safe]\n\tdirectory = /github/workspace" \
> /home/runner/work/_temp/_github_home/.gitconfig
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install requirements
run: |
pip install -r requirements.txt
- name: Generate STL
run: |
python generate_static.py
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "build/static/"

97 changes: 0 additions & 97 deletions .github/workflows/check.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/gen_freecad_stl.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: 2023 Robin Vobruba <[email protected]>
# SPDX-FileCopyrightText: 2024 Andreas Kahler <[email protected]>
#
# SPDX-License-Identifier: Unlicense

name: Publish

on:
workflow_run:
workflows: Build
branches: master
types: completed

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
Loading

0 comments on commit 5fe4214

Please sign in to comment.