quarto-dev / quarto-actions

GNU General Public License v2.0
228 stars 53 forks source link

Add option for --profile? #102

Open stormeyseas opened 8 months ago

stormeyseas commented 8 months ago

Love that this action has the to: option, are there also plans to add an equivalent for the --profile options? I'm building a multi-language site using Quarto's profiles feature and I'm hoping to add something like this to my workflow to avoid rendering locally at all costs:

cscheid commented 8 months ago

We hadn't considered it, but it makes total sense. Would you be willing to contribute a PR?

cderv commented 8 months ago

We could definitely add a specific option for this in each action.

Though today you can do this by setting the QUARTO_PROFILE environment variable already https://quarto.org/docs/projects/profiles.html#activating-profiles

      - name: Deploy gh-pages Preview
        uses: quarto-dev/quarto-actions/publish@v2
        with:
          target: gh-pages
        env:
          QUARTO_PROFILE: preview

We should probably add an example of this at least.

This will work with any action as it will be picked up by quarto render and quarto publish