Skip to content

Commit

Permalink
app deployment with GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mat3us2 committed Oct 25, 2024
1 parent ddab4e7 commit f1fe611
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
23 changes: 23 additions & 0 deletions .github/workflows/deploy-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Workflow derived from https://github.com/posit-dev/r-shinylive/tree/actions-v1/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
#
# Basic example of a GitHub Actions workflow that builds a Shiny app and deploys
# it to GitHub Pages.
name: Deploy app to gh-pages

on:
# Manually trigger the workflow
workflow_dispatch:
# Trigger on push to `main` branch
push:
branches: ["main"]
# Trigger on pull request to all branches (but do not deploy to gh-pages)
pull_request:

jobs:
shinylive:
uses: posit-dev/r-shinylive/.github/workflows/deploy-app.yaml@actions-v1
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
2 changes: 1 addition & 1 deletion app.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ library(bslib)
ui <- page_sidebar(

# App title ----
title = "Hello Shiny!",
title = "Hello Shiny test app!",

# Sidebar panel for inputs ----
sidebar = sidebar(
Expand Down
49 changes: 49 additions & 0 deletions shinylive_RPharma2024_workshop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
### SHINYLIVE

[https://github.com/schloerke/workshop-rinpharma24-shinylive](https://github.com/schloerke/workshop-rinpharma24-shinylive)

[https://schloerke.com/workshop-rinpharma24-shinylive-app-final/](https://schloerke.com/workshop-rinpharma24-shinylive-app-final/)

[https://gws.phd/](https://gws.phd/)

[https://posit-dev.github.io/r-shinylive/](https://posit-dev.github.io/r-shinylive/)

[https://shinylive.io/r/editor/](https://shinylive.io/r/editor/)

[https://shinylive.io/r/examples/](https://shinylive.io/r/examples/)


shinylive server IS IN THE Browser

No secrets -- potential security vulnerability?

**Not for sensitive data!**

[https://gallery.shinyapps.io/assistant/](https://gallery.shinyapps.io/assistant/)

thematic R package
`thematic_shiny()`

[https://rstudio.github.io/thematic/](https://rstudio.github.io/thematic/)

[https://r-universe.dev/search](R-Universe -- check this out)

[https://r-universe.dev/search](https://r-universe.dev/search)


Security, secrets -- don't do shinylive

`options(repos = c(CRAN = "https://runiverse.r-universe.dev"))`

[https://www.youtube.com/c/RinPharma](https://www.youtube.com/c/RinPharma)

[https://github.com/r-wasm/actions](https://github.com/r-wasm/actions)

[https://github.com/r-wasm/actions#reusable-workflows](https://github.com/r-wasm/actions#reusable-workflows)

[https://blog.djnavarro.net/posts/2022-01-10_setting-cran-repositories/](https://blog.djnavarro.net/posts/2022-01-10_setting-cran-repositories/)

[https://github.com/posit-dev/r-shinylive#github-pages](https://github.com/posit-dev/r-shinylive#github-pages)

[https://github.com/schloerke/workshop-rinpharma24-shinylive-app](https://github.com/schloerke/workshop-rinpharma24-shinylive-app)

0 comments on commit f1fe611

Please sign in to comment.