Skip to content

Commit

Permalink
Try fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Oct 27, 2022
1 parent 0d2df1b commit 55b8848
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 24 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

# Basic set up for three package managers

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
22 changes: 15 additions & 7 deletions .github/workflows/pkgdown-gh-pages-clean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ name: Clean pkgdown manually

jobs:
pkgdown-gh-pages-manual:
runs-on: macos-latest
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CURL_SSL_BACKEND: "openssl"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
install-r: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand All @@ -33,8 +35,14 @@ jobs:
ropensci/rnaturalearthhires
needs: website

- name: Deploy package
run: |
git config --local user.name "dieghernan"
git config --local user.email "[email protected]"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, clean = TRUE, run_dont_run = TRUE)'
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, run_dont_run = TRUE, clean = TRUE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
22 changes: 15 additions & 7 deletions .github/workflows/rostemplate-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ name: rostemplate-gh-pages

jobs:
rostemplate-gh-pages:
runs-on: macos-latest
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CURL_SSL_BACKEND: "openssl"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
install-r: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand All @@ -39,8 +41,14 @@ jobs:
ropensci/rnaturalearthhires
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, run_dont_run = TRUE)'
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, run_dont_run = TRUE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
28 changes: 18 additions & 10 deletions .github/workflows/update-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ name: update-docs

jobs:
update-docs:
runs-on: macos-latest
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CURL_SSL_BACKEND: "openssl"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

install-r: true


- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down Expand Up @@ -51,10 +53,16 @@ jobs:
git push origin || echo "No changes to commit"
- uses: r-lib/actions/check-r-package@v2

- 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, run_dont_run = TRUE)'

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, run_dont_run = TRUE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs

0 comments on commit 55b8848

Please sign in to comment.