Skip to content

Commit

Permalink
use simpler action with token
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Jul 16, 2020
1 parent ceb8591 commit f39427e
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,9 @@ jobs:
- name: Build pkgdown website
run: pkgdown::build_site()
shell: Rscript {0}
- name: Get system dependencies for github pages deploy
run: apt-get update -y && apt-get install -y ssh rsync
- name: Deploy pkgdown website to ref
if: github.event_name != 'pull_request' && github.ref != 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GH_PAT }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs # The folder the action should deploy.
TARGET_FOLDER: ${{ github.ref }}
- name: Deploy pkgdown website to root
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GH_PAT }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs # The folder the action should deploy.
uses: maxheld83/ghpages@github-token
env:
BUILD_DIR: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f39427e

Please sign in to comment.