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.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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: Install dependencies
  20. run: |
  21. sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases
  22. sudo apt update
  23. sudo apt install -y --install-recommends kicad
  24. - name: Install latest mdbook
  25. run: |
  26. tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
  27. url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
  28. mkdir mdbook
  29. curl -sSL $url | tar -xz --directory=./mdbook
  30. echo `pwd`/mdbook >> $GITHUB_PATH
  31. - name: Build Book
  32. run: docs/generate_docs.sh
  33. - name: Setup Pages
  34. uses: actions/configure-pages@v2
  35. - name: Upload artifact
  36. uses: actions/upload-pages-artifact@v1
  37. with:
  38. path: 'docs/book'
  39. - name: Deploy to GitHub Pages
  40. id: deployment
  41. uses: actions/deploy-pages@v1