Skip to content

ci: new doc-preview workflow changes.#82

Merged
ArekBalysNordic merged 4 commits into
nrfconnect:mainfrom
ArekBalysNordic:ci_changes
Jan 30, 2026
Merged

ci: new doc-preview workflow changes.#82
ArekBalysNordic merged 4 commits into
nrfconnect:mainfrom
ArekBalysNordic:ci_changes

Conversation

@ArekBalysNordic
Copy link
Copy Markdown
Contributor

  • Added a functionality to take care of obsolete PR-previews removal to ensure that in the new PRs, there are no redundant ones. Since we have this mechanism, we do not need post-pr clean workflow because all the obsolete workflows will be deleted once a new PR is created or after 7 days.
  • The doc preview note seems to be too long. Try to simplify it.
  • Tigger doc-build workflows on changes in README.rst files in
    samples.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 28, 2026

Documentation Preview

The documentation has been built successfully. You can view the preview here: preview

Generated at: 2026-01-30 06:47:42 UTC with commit b1a5b9e.

Expand to view changed pages

No documentation files were changed in this PR.


Note: The preview will be available after GitHub Pages deployment completes (usually 1-2 minutes). Ensure that generated at timestamp is up to date. If the Pull Request is stale for more than 30 days, the preview may be deleted. In this case, please update the Pull Request, or re-run the Build Documentation workflow to generate a new preview.

Comment thread .github/workflows/docpreview.yml
Comment thread .github/workflows/docpreview.yml Outdated
name: site-state
path: _site
retention-days: 14 # 2 weeks
retention-days: 7 # 1 week, every rebase updates the artifacts
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it still work if old artifacts get deleted (e.g., after a week with no doc runs such as during a holiday period)? From a quick look it seems this workflow might not find the "existing pages" anymore.

By the way if you get fed up with gh-pages we could think about setting up something similar what we have in sdk-nrf / sdk-nrf-bm repos…

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the case is that all artefacts are deleted if there is no action in this repo within 7 days (or maybe let's leave it as it was - two weeks @edmont, what do you think?). If someone wants to see the docs preview again, a rebase is needed after this time. Yes, for now, gh-pages offers enough limits for us, so if we start running out of space there, we will need to move to something else.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI in public repo it does not hurt to have more than 7 or 14 days here (action storage is free)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, right, we need to care about the uploading content to the gh-pages due to limits. However, the state-site can be here much longer. Will set it to 1 month and add an appropriate note.

Added a functionality to take care of obsolete PR-previews removal to ensure
that in the new PRs, there are no redundant ones.

Since we have this mechanism, we do not need post-pr clean workflow
because all the obsolete workflows will be deleted once a new PR is
created or after 7 days.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
The doc preview note seems to be too long. Try to simplify it.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
Tigger doc-build workflows on changes in README.rst files in
samples.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
The on_pr workflow only builds samples using Twister.
If there is a change in doc-preview-related files, there is no
need to run it.

Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
@ArekBalysNordic ArekBalysNordic merged commit 99a086f into nrfconnect:main Jan 30, 2026
4 checks passed
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.

3 participants