Skip to content

Conversation

@yihui
Copy link
Contributor

@yihui yihui commented Nov 26, 2025

close #1507

@yihui yihui requested a review from cderv November 26, 2025 04:24
@yihui
Copy link
Contributor Author

yihui commented Nov 26, 2025

@cderv Do you mind taking a look at the gh-pages deployment?

- name: Build Gitbook only
env:
DEPLOY_GH_PAGES: ${{ github.event.inputs.ghpages }}
if: github.event_name == 'workflow_dispatch'
run: make -C inst/examples gitbook
- name: Deploy Gitbook to gh-pages
if: github.event_name == 'workflow_dispatch' && github.event.inputs.ghpages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: inst/examples/_book

I don't remember when it stopped working, but I'm hoping to pull from gh-pages on connect.posit.cloud so we can still enjoy the automatic publishing from CI. Thanks!

@cderv
Copy link
Collaborator

cderv commented Nov 26, 2025

We just added

   if: github.event_name == 'workflow_dispatch'

So it currently only work on manual trigger, and to build book with Pandoc devel

workflow_dispatch:
inputs:
ghpages:
description: 'Build gitbook with pandoc devel and deploy gitbook to gh-page for checking differences'
required: false
default: true

We just need to make it the default way to build book.

I'll make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Support publishing to connect cloud

3 participants