1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- name: Docs
-
-
- on:
- push:
- branches:
- - master
-
- jobs:
- deploy:
- runs-on: ubuntu-latest
-
- permissions:
- contents: write
- pages: write
- id-token: write
-
- steps:
- - name: Checkout repo
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - name: Checkout repo submodules
- run: git submodule update --init
-
- - name: Install dependencies
- run: |
- sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases
- sudo apt update
- sudo apt install -y --install-recommends kicad pipx libfuse2 libegl1 poppler-utils
-
- - name: Install latest mdbook
- run: |
- tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
- url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
- mkdir mdbook
- curl -sSL $url | tar -xz --directory=./mdbook
- echo `pwd`/mdbook >> $GITHUB_PATH
-
- - name: Install JLC2KiCad_lib
- run: pipx install git+https://github.com/Xyntexx/JLC2KiCad_lib.git@footprint_alignment_workarounds
-
- - name: Fetch part footprints
- run: hardware/fetch_jlc.sh
-
- - name: Build Book
- run: docs/generate_docs.sh build
-
- - name: Setup Pages
- uses: actions/configure-pages@v2
-
- - name: Upload artifact
- uses: actions/upload-pages-artifact@v1
- with:
- path: 'docs/book'
-
- - name: Deploy to GitHub Pages
- id: deployment
- uses: actions/deploy-pages@v1
|