Skip to content
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

ci: Automatically publish docs for new releases #436

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

godlygeek
Copy link
Contributor

An update of #223, rebased and PR'd from a branch instead of a fork so that it can (hopefully) request write permissions for the job that needs to publish the docs...

@godlygeek godlygeek self-assigned this Aug 1, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.10% 🎉

Comparison is base (214debf) 91.55% compared to head (a428342) 91.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #436      +/-   ##
==========================================
+ Coverage   91.55%   91.66%   +0.10%     
==========================================
  Files          90       90              
  Lines       10532    10532              
  Branches     1450     1450              
==========================================
+ Hits         9643     9654      +11     
+ Misses        886      875      -11     
  Partials        3        3              
Flag Coverage Δ
cpp 85.01% <ø> (+0.30%) ⬆️
python_and_cython 95.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@godlygeek godlygeek marked this pull request as draft August 2, 2023 01:34
@godlygeek godlygeek force-pushed the publish_pages_automatically branch 2 times, most recently from a428342 to 17957cb Compare August 2, 2023 01:54
We no longer have any pre-push hooks configured, so this call is no
longer useful.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
@godlygeek godlygeek changed the title Publish pages automatically ci: Automatically publish docs for new releases Aug 2, 2023
@godlygeek godlygeek marked this pull request as ready for review August 2, 2023 03:17
On each new release, automatically build our docs and publish them to
GitHub Pages. The docs are also built by our linting workflow, but we
don't attempt to reuse that build here, because the linting build runs
`towncrier` with a phony version number in order to exercise the news
fragments in the news/ directory, and we don't want that fake version in
the changelog we publish.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
@godlygeek
Copy link
Contributor Author

The new job has

    if: github.event_name == 'release' && github.event.action == 'published'

so that it only runs for new releases, but I iterated on this without that guard to confirm that it works, and the docs currently up on https://bloomberg.github.io/memray/ were published by this job. Had to prove it works somehow, and it was a perfect time to do this since we just had a release and hadn't yet updated the docs 😄

@pablogsal
Copy link
Member

Wonderful!

@pablogsal pablogsal merged commit 72491d1 into main Aug 2, 2023
59 checks passed
@pablogsal pablogsal deleted the publish_pages_automatically branch August 2, 2023 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants