Update RSS in theme #72
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: | |
| - source # where the blog posts source files are written | |
| name: Build and upload blogdown site to GitHub | |
| jobs: | |
| blogdown: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Git repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set up R | |
| uses: r-lib/actions/setup-r@v2 | |
| - name: R package dependencies | |
| uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| cache-version: 1 | |
| install-pandoc: true | |
| - name: Install Hugo | |
| run: Rscript -e "blogdown::install_hugo('0.79.1')" | |
| - name: Render site | |
| run: Rscript -e "blogdown::build_site()" | |
| - name: Upload built site files as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: public | |
| path: public/ | |
| - name: R session info | |
| run: | | |
| options(width = 100) | |
| pkgs <- installed.packages()[, 'Package'] | |
| sessioninfo::session_info(pkgs, include_base = TRUE) | |
| shell: Rscript {0} | |
| checkout-and-deploy: | |
| runs-on: ubuntu-latest | |
| needs: blogdown | |
| steps: | |
| - name: Checkout source branch | |
| uses: actions/checkout@v2 | |
| - name: Download built site files as artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: public # Artifact name | |
| path: public # Destination path | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./public | |
| publish_branch: master | |
| cname: selbydavid.com |