Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
update to new ghactions default
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Dec 1, 2019
1 parent 95eeecd commit 52b9995
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
^.*\.Rproj$
^\.Rproj\.user$
^\.github/workflows$
28 changes: 13 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
name: Render

on: [push]

name: Render and Deploy RMarkdown Website
'on': push
jobs:
build:
runs-on: ubuntu-18.04
container:
image: rocker/verse:3.5.2
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Install dependencies
run: |
Rscript -e "remotes::install_deps(dependencies = TRUE)"
- name: Render Website
run: |
- name: Install Package Dependencies
run: |-
Rscript -e "install.packages('remotes', repos = 'https://demo.rstudiopm.com/all/__linux__/bionic/275')"
Rscript -e "remotes::install_deps(dependencies = TRUE, repos = 'https://demo.rstudiopm.com/all/__linux__/bionic/275')"
- name: Render Site
run: |-
Rscript render.R
- name: Deploy Website
if: github.ref == 'refs/heads/master'
echo "::set-env name=DEPLOY_PATH::$(Rscript -e "cat(rmarkdown::site_config()[['output_dir']])")"
- if: github.ref == 'refs/heads/master'
uses: maxheld83/[email protected]
with:
args: $GITHUB_WORKSPACE/_site/ [email protected]:/proj/websource/docs/FAU/fakultaet/phil/www.datascience.phil.fau.de/websource/crowd
args: $GITHUB_WORKSPACE/$DEPLOY_PATH/ [email protected]:/proj/websource/docs/FAU/fakultaet/phil/www.datascience.phil.fau.de/websource/crowd
env:
HOST_NAME: karli.rrze.uni-erlangen.de
HOST_IP: 131.188.16.138
HOST_FINGERPRINT: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFHJVSekYKuF5pMKyHe1jS9mUkXMWoqNQe0TTs2sY1OQj379e6eqVSqGZe+9dKWzL5MRFpIiySRKgvxuHhaPQU4=
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }}
SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }}
container: rocker/verse:3.5.2

0 comments on commit 52b9995

Please sign in to comment.