Update xfaostat_L199_CSVExportAgSUA.R #24
This file contains 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
name: docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pkgdown: | |
runs-on: ubuntu-latest | |
env: | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN}} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-pandoc@v1 | |
- uses: r-lib/actions/setup-r@v1 | |
with: | |
use-public-rspm: true | |
- name: Ubuntu config | |
run: | | |
sudo apt-get install libcurl4-openssl-dev | |
sudo fallocate -l 8g /mnt/for_fork.swap | |
sudo chmod 600 /mnt/for_fork.swap | |
sudo mkswap /mnt/for_fork.swap | |
sudo swapon /mnt/for_fork.swap | |
- name: Install dependencies | |
run: | | |
install.packages(c("remotes","rcmdcheck", "knitr"), repos = "https://cloud.r-project.org") | |
shell: Rscript {0} | |
- uses: r-lib/actions/setup-r-dependencies@v1 | |
with: | |
extra-packages: pkgdown | |
needs: website | |
- name: Deploy package | |
run: | | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' | |
- name: Track file | |
run: | | |
git add .github/r-depends.rds | |
git commit -m "track file" | |
- name: Auto commit | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
branch: gh-pages | |
push_options: --force |