Skip to content

Commit

Permalink
Deploy connect apps to rsc.radixu.com (#209)
Browse files Browse the repository at this point in the history
* Set up connect deploy

* Fix key and deprecated fn name

* Do not set RSPM location

* try deploying 141-radiant

* Deploy all regular apps

* Generate Connect URLs (GitHub Actions)

* update connect locations to leverage dynamic server location

* Require higher version of {rsconnect} and install from github
  • Loading branch information
schloerke authored Aug 3, 2023
1 parent ada085a commit fd4605c
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 183 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/apps-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ jobs:
# extra_app_text: ", apps = list('000-all', '000-manual', 1, 2)"

## Deployment server has been disabled
# - os: "${{ needs.config.outputs.ubuntu }}"
# r: "4.1"
# type: "connect"
# account: "barret"
# server_name: "beta.rstudioconnect.com"
# server_url: "https://beta.rstudioconnect.com/__api__"
# rspm: "https://demo.rstudiopm.com/all/__linux__/focal/latest"
# cores: 1
# retry: 3
# extra_app_text: ", apps = list('000-all', '000-manual', 1, 2)"
- os: "${{ needs.config.outputs.ubuntu }}"
r: "${{ needs.config.outputs.oldrel1 }}"
type: "connect"
account: "barret"
server_name: "rsc.radixu.com"
server_url: "https://rsc.radixu.com/__api__"
# rspm: "https://demo.rstudiopm.com/all/__linux__/focal/latest"
cores: 1
retry: 3
# extra_app_text: ", apps = list('000-all', '000-manual', 1, 2)"

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RSPM: ${{ matrix.config.rspm }}
# RSPM: ${{ matrix.config.rspm }}

steps:
- uses: actions/checkout@v3
Expand All @@ -70,7 +70,7 @@ jobs:
with:
r-version: ${{ matrix.config.r }}
cache-version: deploy-2-${{ needs.config.outputs.cache-version }}
extra-packages: any::rsconnect
extra-packages: rstudio/rsconnect

# Perform as second step to make sure this version is installed
- name: Install shinycoreci from GitHub
Expand Down Expand Up @@ -101,15 +101,15 @@ jobs:
shell: Rscript {0}
run: |
# Add server info
rsconnect::addConnectServer(
rsconnect::addServer(
url = '${{ matrix.config.server_url }}',
name = '${{ matrix.config.server_name }}'
)
# Add user info
rsconnect::connectApiUser(
'${{ matrix.config.account }}',
'${{ matrix.config.server_name }}',
apiKey = '${{ secrets.BARRET_BETA_RSTUDIOCONNECT_COM_API_KEY }}'
apiKey = '${{ secrets.BARRET_CONNECT_API_KEY }}'
)
# Deploy
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Suggests:
httpuv,
rappdirs,
rmarkdown (>= 2.9),
rsconnect (>= 0.8.16-9001),
rsconnect (>= 1.0.1),
testthat,
httr,
tibble,
Expand Down
Loading

0 comments on commit fd4605c

Please sign in to comment.