-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.63 KB
/
shinyapps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# See: https://community.rstudio.com/t/deploying-shiny-app-with-github-actions/78436/3
name: deploy-shiny
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy-shiny:
runs-on: ubuntu-latest
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master
- name: Install packages
run: |
sudo apt-get update && sudo apt-get install -yq libcurl4-openssl-dev
- name: Setup Java
uses: joschi/setup-jdk@v2
with:
java-version: '8'
- name: Debug
run: |
which java
echo $JAVA_HOME
sudo R CMD javareconf
ls /usr/lib/jvm/
- name: Install shiny
run: |
install.packages(c("shiny", "rsconnect", "remotes"))
shell: Rscript {0}
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"
- name: Install dependencies, Linux
if: runner.os != 'Windows'
run: |
remotes::install_deps(dependencies = TRUE, upgrade = "always")
shell: Rscript {0}
- name: Push to shiny.io
run: |
Rscript -e "rsconnect::setAccountInfo(name='bimberlab', token='${{secrets.SHINYAPPS_TOKEN}}', secret='${{secrets.SHINYAPPS_SECRET}}')"
Rscript -e "rsconnect::deployApp('inst/app', appName = 'geneSetVis', forceUpdate = TRUE)"