Skip to content

new workflow trial #46

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

Merged
merged 10 commits into from
Jun 3, 2025
Merged

new workflow trial #46

merged 10 commits into from
Jun 3, 2025

Conversation

koron
Copy link
Member

@koron koron commented Mar 5, 2025

  • Deploy without gh-pages branch by using actions/upload-pages-artifact
  • Making intermediate products available as artifacts
  • (OPTIONAL) Parallelize HTML generation for speed

@koron
Copy link
Member Author

koron commented Mar 5, 2025

とりあえずのartifactの一発目のサンプル

https://github.com/vim-jp/vimdoc-en/actions/runs/13666457181

github-pagesというartifactにVimが生成したHTMLが含まれている。
tar in zip という変則方式であることに注意。

(artifactは時間経過で削除されるので要留意)

@koron koron force-pushed the build-and-deploy-renewal branch from 140aa7a to c083772 Compare March 5, 2025 01:57
@koron koron force-pushed the build-and-deploy-renewal branch from 12c4339 to 1c2f24f Compare March 5, 2025 10:47
@koron koron force-pushed the build-and-deploy-renewal branch 3 times, most recently from b8deaf4 to 812280e Compare March 5, 2025 11:31
@koron koron force-pushed the build-and-deploy-renewal branch from 812280e to 32c4be3 Compare March 5, 2025 11:40
@koron
Copy link
Member Author

koron commented Mar 6, 2025

いったん、並列化は忘れる。
手間のかかる割に効果が低い。

ただし方針として全部の変換ファイルをバラしてパラレルにするのではなく、4つのグループに分けてそれぞれをパラレルにと言う方が良さそう。Vimの起動&変換に相当のオーバーヘッドがある模様。

@koron
Copy link
Member Author

koron commented Jun 3, 2025

gitレポジトリ外(GitHubのSettings)で必要になる設定

  • GitHub Pages のビルドにActionsを使うことを設定する
  • page write パーミッションを設定する

@koron koron marked this pull request as ready for review June 3, 2025 08:27
@koron
Copy link
Member Author

koron commented Jun 3, 2025

GitHub Pages のビルドにActionsを使うことを設定する

image

page write パーミッションを設定する

これは正しくは github-pages Environment に master ブランチを追加する、だったと思う

image

@koron
Copy link
Member Author

koron commented Jun 3, 2025

一旦準備が完了したので、masterへマージして様子をみてみる。

@koron koron merged commit 6ec6c1a into master Jun 3, 2025
2 checks passed
@koron koron deleted the build-and-deploy-renewal branch June 3, 2025 08:35
Copy link
Member

Choose a reason for hiding this comment

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

このファイルがコミットされているのは意図的なものでしょうか。

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.

2 participants