Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

docs.yml 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Docs
  2. # only build single instance of docs for latest main branch
  3. on:
  4. push:
  5. branches:
  6. - master
  7. jobs:
  8. deploy:
  9. runs-on: ubuntu-latest
  10. permissions:
  11. contents: write
  12. pages: write
  13. id-token: write
  14. steps:
  15. - name: Checkout repo
  16. uses: actions/checkout@v4
  17. with:
  18. fetch-depth: 0
  19. - name: Checkout repo submodules
  20. run: git submodule update --init
  21. - name: Install dependencies
  22. run: |
  23. sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases
  24. sudo apt update
  25. sudo apt install -y --install-recommends kicad
  26. - name: Install latest mdbook
  27. run: |
  28. tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
  29. url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
  30. mkdir mdbook
  31. curl -sSL $url | tar -xz --directory=./mdbook
  32. echo `pwd`/mdbook >> $GITHUB_PATH
  33. - name: Build Book
  34. run: docs/generate_docs.sh build
  35. - name: Setup Pages
  36. uses: actions/configure-pages@v2
  37. - name: Upload artifact
  38. uses: actions/upload-pages-artifact@v1
  39. with:
  40. path: 'docs/book'
  41. - name: Deploy to GitHub Pages
  42. id: deployment
  43. uses: actions/deploy-pages@v1