Skip to content

Commit 76e1b50

Browse files
committed
Merge branch 'feature/enable-quarto-pub' into main
2 parents 0bb8e4c + f9c5df7 commit 76e1b50

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/command/publish/cmd.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ export const publishCommand =
4646
.name("publish")
4747
.description(
4848
"Publish a document or project. Available providers include:\n\n" +
49-
" - Netlify (netlify)\n" +
49+
" - Quarto Pub (quarto-pub)\n" +
5050
" - GitHub Pages (gh-pages)\n" +
5151
" - RStudio Connect (connect)\n\n" +
52+
" - Netlify (netlify)\n" +
5253
"Accounts are configured interactively during publishing.\n" +
5354
"Manage/remove accounts with: quarto publish accounts",
5455
)

src/publish/provider.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,22 @@ export function anonymousAccount(): AccountToken {
4040
}
4141

4242
const kPublishProviders = [
43-
netlifyProvider,
44-
ghpagesProvider,
4543
quartoPubProvider,
44+
ghpagesProvider,
4645
rsconnectProvider,
46+
netlifyProvider,
4747
];
4848

4949
export async function publishProviders() {
5050
const providers: Array<PublishProvider> = [];
51-
providers.push(netlifyProvider);
52-
providers.push(ghpagesProvider);
5351
const dotenvConfig = await quartoConfig.dotenv();
5452
const quartopubAppId = dotenvConfig["QUARTO_PUB_APP_CLIENT_ID"];
5553
if (quartopubAppId && quartopubAppId !== "None") {
5654
providers.push(quartoPubProvider);
5755
}
56+
providers.push(ghpagesProvider);
5857
providers.push(rsconnectProvider);
58+
providers.push(netlifyProvider);
5959
return providers;
6060
}
6161

src/resources/env/env.defaults

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
NETLIFY_APP_CLIENT_ID="Uvc1jdhLBsRtog1ToBQ2T5emDnvrW4or4GIcis-tMyA"
2-
QUARTO_PUB_ENVIRONMENT="None"
3-
QUARTO_PUB_APP_CLIENT_ID="None"
2+
QUARTO_PUB_APP_CLIENT_ID="DM573bgQK4WcTOSOc0ku9Ur7fGvKHKgw"

0 commit comments

Comments
 (0)