Skip to content
New issue

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

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

Already on GitHub? # to your account

Add option for --profile? #102

Open
stormeyseas opened this issue Mar 12, 2024 · 2 comments
Open

Add option for --profile? #102

stormeyseas opened this issue Mar 12, 2024 · 2 comments

Comments

@stormeyseas
Copy link

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:

  • name: Render default language
  • uses: newrenderaction
    • profile: lang1
    • path: docs
  • name: Render second language
  • uses: newrenderaction
    • profile: lang2
    • path: docs/lang2
@cscheid
Copy link
Contributor

cscheid commented Mar 12, 2024

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

@cderv
Copy link
Collaborator

cderv commented Mar 13, 2024

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

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

No branches or pull requests

3 participants