-
Notifications
You must be signed in to change notification settings - Fork 397
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
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a428342
to
17957cb
Compare
We no longer have any pre-push hooks configured, so this call is no longer useful. Signed-off-by: Matt Wozniski <[email protected]>
17957cb
to
7216edf
Compare
bb3262c
to
aa42110
Compare
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 <[email protected]>
aa42110
to
1fead8a
Compare
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 😄 |
Wonderful! |
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...