😎 Give your xaringan slides some style
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

47 lines
1.2KB

  1. # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
  2. # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
  3. on:
  4. push:
  5. branches: [main, master]
  6. pull_request:
  7. branches: [main, master]
  8. release:
  9. types: [published]
  10. workflow_dispatch:
  11. name: pkgdown
  12. jobs:
  13. pkgdown:
  14. runs-on: ubuntu-latest
  15. # Only restrict concurrency for non-PR jobs
  16. concurrency:
  17. group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
  18. env:
  19. GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
  20. steps:
  21. - uses: actions/checkout@v2
  22. - uses: r-lib/actions/setup-pandoc@v2
  23. - uses: r-lib/actions/setup-r@v2
  24. with:
  25. use-public-rspm: true
  26. - uses: r-lib/actions/setup-r-dependencies@v2
  27. with:
  28. extra-packages: any::pkgdown, local::.
  29. needs: website
  30. - name: Build site
  31. run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
  32. shell: Rscript {0}
  33. - name: Deploy to GitHub pages 🚀
  34. if: github.event_name != 'pull_request'
  35. uses: JamesIves/github-pages-deploy-action@4.1.4
  36. with:
  37. clean: false
  38. branch: gh-pages
  39. folder: docs