Update README.md #100
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # .github/workflows/pkgdown.yml | |
| name: pkgdown | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| pkgdown: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| # Install dependencies directly with base R | |
| - name: Install dependencies | |
| uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| working-directory: quant | |
| extra-packages: | | |
| any::remotes | |
| any::pkgdown | |
| any::quarto | |
| any::carrier | |
| any::mirai | |
| any::gt | |
| - name: Install Quarto | |
| uses: quarto-dev/quarto-actions/setup@v2 | |
| - name: Install mrmhub | |
| working-directory: quant | |
| run: Rscript -e 'remotes::install_local(dependencies = FALSE)' | |
| - name: Build pkgdown site | |
| working-directory: quant | |
| run: Rscript -e "pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)" | |
| - name: Deploy to GitHub Pages 🚀 | |
| if: github.event_name != 'pull_request' | |
| uses: JamesIves/github-pages-deploy-action@v4.5.0 | |
| with: | |
| clean: false | |
| branch: gh-pages | |
| folder: quant/docs |