Skip to content

Invalid error when attempting to publish #8221

@dragonstyle

Description

@dragonstyle

I'm attempting to test publish to confluence, but if I do:

quarto create project confluence c
cd c
quarto publish

I receive an error about a missing gh-pages branch before even selecting the publishing target

ERROR: Unable to publish to GitHub Pages (the remote origin does not have a branch named "gh-pages". Use first `quarto publish gh-pages` locally to initialize the remote repository for publishing.)

Stack trace:
    at throwUnableToPublish (file:///Users/ct/Development/quarto-dev/quarto-cli/src/publish/gh-pages/gh-pages.ts:428:9)
    at Object.publishRecord (file:///Users/ct/Development/quarto-dev/quarto-cli/src/publish/gh-pages/gh-pages.ts:100:5)
    at eventLoopTick (ext:core/01_core.js:183:11)
    at async publishDeployments (file:///Users/ct/Development/quarto-dev/quarto-cli/src/command/publish/deployment.ts:118:22)
    at async resolveDeployment (file:///Users/ct/Development/quarto-dev/quarto-cli/src/command/publish/deployment.ts:35:23)
    at async publishAction (file:///Users/ct/Development/quarto-dev/quarto-cli/src/command/publish/cmd.ts:211:7)
    at async Command.fn (file:///Users/ct/Development/quarto-dev/quarto-cli/src/command/publish/cmd.ts:152:11)
    at async Command.execute (file:///Users/ct/Development/quarto-dev/quarto-cli/src/vendor/deno.land/x/cliffy@v0.25.4/command/command.ts:1790:7)
    at async quarto (file:///Users/ct/Development/quarto-dev/quarto-cli/src/quarto.ts:155:3)
    at async file:///Users/ct/Development/quarto-dev/quarto-cli/src/quarto.ts:186:5

Metadata

Metadata

Assignees

Labels

publishingregressionFunctionality that used to work but now is broken.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions