-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (56 loc) · 1.57 KB
/
deploy-app.yaml
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
58
59
60
61
62
63
64
65
---
name: Deploy app
on:
push:
branches:
- "main"
workflow_dispatch:
permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: read
discussions: read
packages: write
pages: write
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: rstudio/shiny-workflows/setup-r-package@v1
with:
packages: |
renv
posit-dev/r-shinylive@cf739ae
sessioninfo
- name: Install package
run: |
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://bioc.r-universe.dev", "https://r-lib.r-universe.dev", "https://cloud.r-project.org"), dependencies = TRUE)
tima::install()
shell: Rscript {0}
- name: Build site
shell: Rscript {0}
run: |
shinylive::export(system.file(package = "tima"), "site", template_params = c(title="TIMA Shinylive"))
- name: Upload site artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: "site"
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: site