|
9 | 9 | shell: Rscript {0} |
10 | 10 | container: |
11 | 11 | # update muggle here and in Dockerfile |
12 | | - image: subugoe/muggle-buildtime-onbuild:0.1.1-20210126 |
| 12 | + image: subugoe/muggle-buildtime-onbuild:0.1.2-20211124 |
13 | 13 | env: |
14 | 14 | MUGGLE_PKG_NAME: ${{ github.event.repository.name }} |
15 | 15 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
50 | 50 | tags: ${{ github.sha }} |
51 | 51 | add_git_labels: true |
52 | 52 | push: ${{ github.event_name != 'pull_request' }} |
53 | | - - name: Build Runtime Image |
54 | | - uses: docker/build-push-action@v1 |
55 | | - with: |
56 | | - repository: ${{ github.repository }}/${{ env.MUGGLE_PKG_NAME }}-runtime |
57 | | - target: runtime |
58 | | - username: ${{ github.actor }} |
59 | | - password: ${{ secrets.GITHUB_TOKEN }} |
60 | | - registry: docker.pkg.github.com |
61 | | - # this will set "latest" if master as per https://github.com/docker/build-push-action |
62 | | - tag_with_ref: true |
63 | | - # we're relying on long shas only to keep things easy |
64 | | - tag_with_sha: false |
65 | | - tags: ${{ github.sha }} |
66 | | - add_git_labels: true |
67 | | - push: ${{ github.event_name != 'pull_request' }} |
68 | | - - name: Deploy Shiny Application to shinyapps.io ref |
69 | | - env: |
70 | | - SHINYAPPS_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }} |
71 | | - SHINYAPPS_SECRET: ${{ secrets.SHINYAPPS_SECRET }} |
72 | | - GITHUB_REF: ${{ github.ref }} |
73 | | - if: github.event_name != 'pull_request' |
74 | | - run: | |
75 | | - remotes::install_github(repo = "subugoe/hoad", ref = "master", force = TRUE, dependencies = TRUE) |
76 | | - rsconnect::setAccountInfo(name = 'subugoe', token = Sys.getenv('SHINYAPPS_TOKEN'), secret = Sys.getenv('SHINYAPPS_SECRET')) |
77 | | - app_name <- paste0("hoad-", gsub("/", "-", Sys.getenv('GITHUB_REF'))) |
78 | | - rsconnect::deployDoc(doc = "inst/app/dashboard.Rmd", appName = app_name) |
79 | | - shell: Rscript {0} |
80 | 53 | - name: Deploy to GitHub Pages |
81 | 54 | if: github.ref == 'refs/heads/master' |
82 | 55 | uses: maxheld83/ghpages@github-token |
|
0 commit comments