Update postdoc.md #301
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
| on: | |
| push: | |
| branches: | |
| - main | |
| name: 🚀 Build and Deploy | |
| jobs: | |
| build: | |
| runs-on: macOS-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| - name: Setup Pandoc | |
| uses: r-lib/actions/setup-pandoc@v2 | |
| - name: Install rmarkdown and blogdown | |
| run: Rscript -e 'install.packages(c("rmarkdown","blogdown", "remotes"))' | |
| - name: Install hugo | |
| run: Rscript -e 'blogdown::install_hugo()' | |
| - name: Build site with blogdown | |
| run: Rscript -e "blogdown::build_site()" | |
| - name: Deploy 🚀 | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs |