-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only build pkgdown on version tags #450
Comments
We could also add a manual trigger, where you could specify the tag/branch to run it on, to help these cases. |
While thinking about r-lib/pkgdown#1950, I wondered if we should use the on:
release:
types: [published] For the more rare thing where we backport changes to a released site, the |
Oh yeah,
|
I added on:
push:
branches: [main, master]
tags: ['*']
workflow_dispatch: and created a branch off the v2.1.3 release, backporting a bunch of pkgdown updates, plus an updated README ( The branch is update-pkgdown-2-1-3. I was able to trigger a rebuild of the released site in the browser (see usethis's |
Oh hmmmm, interesting approach. It feels much better thought out than what I had in my head. |
I guess you could still accidentally clobber a released site, if you were publishing historical releases that were missed the first time. But this feels clearly more correct than triggering for any pushed tag. And the |
FWIW I liked the tag (or branch) approach, because with that it is possible to fix a released pkgdown site without creating a new package release. OTOH I guess you can use the manual trigger in this case to deploy from a branch. Should we add a parameter to the manual trigger to allow deploying from a tag? |
Or we could just keep a tag section, but with a very specific tag or tag pattern. Because run-of-the-mill releases will be handled by the FWIW, with https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event |
I like the idea that the released site will only be touched via a GitHub release or a manual intervention. I wonder if we should somehow connect this to the new |
It is still true that you want to be checked out from a (patched?) released state, when rendering something that will overwrite the a released site. So there's no way to avoid using a branch or tag, in the case where we're travelling back in time to update a released site. (I'm not sure exactly what you're thinking re: the env var.) |
I'll try to summarize. on:
push:
branches: [main, master]
release:
types: [published]
workflow_dispatch: Keeping the I think the I think adding Still up for debate: whether to retain a |
I think this is all good. I would definitely omit the I'll merge this soon, and also add it to |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue |
i.e
Not all tags, as currently.
The text was updated successfully, but these errors were encountered: