quarto-dev / quarto-actions

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

publish: How to achieve `quarto publish gh-pages --no-browser`? #76

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

With a private GitHub repository and public GitHub Pages, you can publish at the command line using:

quarto publish gh-pages --no-browser

cf. https://quarto.org/docs/publishing/github-pages.html#private-sites.

Is it possible get that --no-browser argument with quarto-dev/quarto-actions/publish@v2?

cscheid commented 1 year ago

Good point. It feels like we should always pass this option, right @cderv? I don't see a downside since we're in CI...

cderv commented 1 year ago

Yes I think we can add that to the action no matter if private or public.

We could also allow passing any flag for avoid this constraint in the future. But one can run quarto publish directly in this case I guess.

Robinlovelace commented 11 months ago

Just to add, I think this caused a crash in my workflow: ERROR: Unknown option "--no-browser". Did you mean option "--version"?

Source: https://github.com/nptscot/networkmerge/actions/runs/7071037924/job/19248315056#step:6:44

I've tried updating to a later version of Quarto here: https://github.com/nptscot/networkmerge/pull/66/commits/8b198abad6529ac0d86983add1ac0a363a298e9d

That should fix it, right?

Robinlovelace commented 11 months ago

Cause: very out of date version in examples. Patch submitted as PR: https://github.com/quarto-dev/quarto-actions/pull/93