main.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. on:
  2. workflow_dispatch:
  3. push:
  4. branches: [master, index]
  5. name: Quarto Publish
  6. jobs:
  7. retrieve:
  8. runs-on: ubuntu-latest
  9. container:
  10. image: lennartwittkuhn/datalad:0.17.6
  11. steps:
  12. - name: Install and Build
  13. run: |
  14. datalad install --get-data https://github.com/$GITHUB_REPOSITORY
  15. datalad unlock -d replay-illustrations replay-illustrations/illustrations
  16. - name: Upload artifact
  17. uses: actions/upload-artifact@v2
  18. with:
  19. name: page
  20. path: replay-illustrations/illustrations
  21. build-deploy:
  22. runs-on: ubuntu-latest
  23. permissions:
  24. contents: write
  25. steps:
  26. - name: Check out repository
  27. uses: actions/checkout@v2
  28. - name: Download artifact
  29. uses: actions/download-artifact@v2
  30. with:
  31. name: page
  32. path: replay-illustrations/illustrations
  33. - name: Set up Quarto
  34. uses: quarto-dev/quarto-actions/setup@v2
  35. - name: Install R
  36. uses: r-lib/actions/setup-r@v2
  37. with:
  38. r-version: '4.2.0'
  39. - name: Install R Dependencies
  40. uses: r-lib/actions/setup-renv@v2
  41. with:
  42. cache-version: 1
  43. - name: Render and Publish
  44. uses: quarto-dev/quarto-actions/publish@v2
  45. with:
  46. target: gh-pages
  47. env:
  48. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}