Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Quarto Shiny Deploy CI Example #34

Open
Lightbridge-KS opened this issue Aug 9, 2022 · 0 comments
Open

Adding Quarto Shiny Deploy CI Example #34

Lightbridge-KS opened this issue Aug 9, 2022 · 0 comments

Comments

@Lightbridge-KS
Copy link
Contributor

Hi, I've an Idea.

I've create GHA workflow that deploy Shiny app using Quarto using {rsconnect} to shinyapps.io seamlessly, as inspired from this shiny-deploy action

Here are the example app:

jobs:
  shiny-deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Set up Quarto
        uses: quarto-dev/quarto-actions/setup@v2
        with:
          # To install LaTeX to build PDF book
          tinytex: true
          # uncomment below and fill to pin a version
          # version: 0.9.600

      - name: Set up R Environment
        uses: r-lib/actions/setup-renv@v2 # Installs packages from renv lockfile
        with:
          cache-version: 1

      - name: Install {rsconnect} and {quarto}
        run: |
          renv::install("rsconnect")
          renv::install("quarto")
        shell: Rscript {0}


      - name: Authorize and deploy app
        env: 
          APPNAME: your-app-name
          ACCOUNT: your-account-name
          SERVER: shinyapps.io
        run: |
          rsconnect::setAccountInfo("${{ secrets.RSCONNECT_USER }}", "${{ secrets.RSCONNECT_TOKEN }}", "${{ secrets.RSCONNECT_SECRET }}")
          rsconnect::deployApp(appName = "${{ env.APPNAME }}", account = "${{ env.ACCOUNT }}", server = "${{ env.SERVER }}", quarto = quarto::quarto_path())
        shell: Rscript {0}

However, the action must at least install R, {rsconnect}, {quarto}, and have shinyapps.io account.

Do you think is it a good idea to may be include here in the examples/ section of this repo and write some tutorial ?
If so, I might able to help you with that.

Thankyou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant