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

Can this action be utilised with bundled quarto projects? #112

Open
YannisChourdakis opened this issue Aug 9, 2024 · 1 comment
Open

Comments

@YannisChourdakis
Copy link

As described here

https://docs.posit.co/connect/user/structuring-content/#:~:text=%23%20Local%20file%20structure%0A/report1/index.qmd%0A/report1/fig_1.png%0A/report2/index.qmd%0A/shared/project_logo.png

quarto files can be bundled together under one directory, in their own subdirectories. Can this action handle deploying multiple quarto files at once, for example to Posit connect by providing the path to the directory of the bundle?

When attempted to provide that in the "path:" the action expected a book, manuscript or website which makes sense considering the current version of the action.

Would it be possible to have this functionality in a future version or is there already a workaround?

image

The workflow I tested is:

   - name: Set up Quarto
     uses: quarto-dev/quarto-actions/setup@v2

   - name: Render and Publish
     uses: quarto-dev/quarto-actions/publish@v2
     env:
       GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     with:
       target: connect
       path: R
       render: false
       CONNECT_SERVER: https://***.********.***/
       CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}
@cderv
Copy link
Collaborator

cderv commented Sep 18, 2024

Can this action handle deploying multiple quarto files at once, for example to Posit connect by providing the path to the directory of the bundle?

I am not sure what bundle really is here. This action will use quarto publish to deploy to Posit Connect and it is used to deploy a document or a quarto project (like website). You need to call it on the folder that is the Quarto project.

If quarto publish is not able to do this, then it could be an issue in Quarto. Though, if you want more control about what Connect API allows for deployment, you can try the Python or R package

They will be working with Quarto too - quarto publish is not the only option.

Hope it helps

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

2 participants