Repository navigation
古いナンプレ帳の版を公開対象から外し、公開サイズを小さくする - #69
Merged
Merged
Conversation
- enhance-nanpure.py が _site の組み立て時に古い版を外す(workflowファイルはAPIから変更できないため、ここに組み込む) - _site のときだけ外し、リポジトリ自体には触れない
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
マージ後の公開(deploy)が「Timeout reached, aborting!」で失敗し、サイトが更新されなくなっていた。原因は公開サイズで、サイト全体が約2.3GBあり、そのうちナンプレ帳の過去版が76版分で約2.1GBを占めていた。GitHub Pagesは1GB程度までの想定のため、公開が時間切れになっていた。
変更内容
scripts/prune-old-nanpure-releases.cjsを追加した。scripts/enhance-nanpure.pyが組み立て時にそのスクリプトを呼ぶようにした(workflowファイルはAPIから変更できないため、ここに組み込んだ)。_siteのときだけ外し、リポジトリ自体には触れない。nanpure/release-manifest.jsonからも外した版の記録を除き、整合性チェックと一致させた。残す版
確認済み