quarto-dev / quarto-actions

GNU General Public License v2.0
220 stars 51 forks source link

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

Open YannisChourdakis opened 1 month ago

YannisChourdakis commented 1 month ago

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 commented 6 days ago

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