Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Privateリポジトリで 管理しているソースコードを 無料でGitHub Pagesに公開する
Search
Ryusei Ishikawa
August 07, 2023
Technology
0
1.4k
Privateリポジトリで 管理しているソースコードを 無料でGitHub Pagesに公開する
seccamp 2023 LT day1
Ryusei Ishikawa
August 07, 2023
Tweet
Share
More Decks by Ryusei Ishikawa
See All by Ryusei Ishikawa
HTTP通信を書きかえてみよう
xryuseix
0
27
Webアプリケーションのユーザ入力検証
xryuseix
3
880
CTFにおけるOSINT問題作問の難しさ
xryuseix
0
420
「Reactはビルド時にコメントが消えるから」と言ってコメントに💩を書いてはいけない
xryuseix
0
710
Other Decks in Technology
See All in Technology
エンジニア候補者向け資料2024.04.24.pdf
macloud
0
3.4k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
5
37k
Max out Local LLM in Challenging Environments
sashimimochi
2
200
障害対応をちょっとずつよくしていくための 演習の作りかた
heleeen
1
1.8k
BPStudyの200回を中心にIT業界を振り返る。そしてこれから
haru860
3
430
Cloud Service Mesh に触れ合う
phaya72
1
270
今日からできる!簡単 .NET 高速化 Tips -2024 edition-
xin9le
7
4.6k
実例で紹介するRAG導入時の知見と精度向上の勘所
yamahiro
7
2.1k
How to Lead? Testimonial of a Lead Android Engineer
oleur
1
120
IaCからAWSに入門した初心者が CloudFormationを通して考えた「AWS操作」の使い分け
maimyyym
2
580
今年のRubyKaigiはProfiler Year🤘
osyoyu
0
490
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
830
Featured
See All Featured
For a Future-Friendly Web
brad_frost
172
9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
8
3.4k
The Power of CSS Pseudo Elements
geoffreycrofte
62
5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
9
1.3k
Being A Developer After 40
akosma
67
580k
In The Pink: A Labor of Love
frogandcode
138
21k
Building an army of robots
kneath
300
41k
A designer walks into a library…
pauljervisheath
201
23k
Typedesign – Prime Four
hannesfritz
36
2.1k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
The Mythical Team-Month
searls
217
42k
Building a Modern Day E-commerce SEO Strategy
aleyda
22
6.4k
Transcript
Privateリポジトリで 管理しているソースコードを 無料でGitHub Pagesに公開する ネクスト受講生・xryuseix (@ryusei_ishika)
自己紹介 Twitter: @ryusei_ishika ネクストキャンプの受講生です。 Webセキュリティと開発が好きです。 このスライドは今朝南武線の中で書きました。 2
そもそもprivateリポジトリでGitHub Pagesは使用できます (本末転倒) これってstring? number? https://expressjs.com/ja/starter/hello-world.html 3
そもそもprivateリポジトリでGitHub Pagesは使用できます (本末転倒) これってstring? number? https://docs.github.com/ja/pages/getting-started-with-github-pages/about-github-pages 4
そもそもprivateリポジトリでGitHub Pagesは使用できます (本末転倒) これってstring? number? 5
なのでこのLTは乞食向けです これってstring? number? 6 お金持ちの皆さんはお帰りください
じゃあまだ聞いている人は 乞食ってことで🤟 これってstring? number? 7
そもそもprivateでレポジトリを管理して、 publicで公開したい時って何? これってstring? number? 8 * 基本的にGitで管理したいが、特定のファイルだけ公開したくない時 * 非可逆・元に戻しにくいビルドが行われる場合 *
minifyなどを用いており、かつソースコードは公開したくない *ビルドにcredencialが必要な場合 僕は特定のファイルをハッシュ化して、 そのハッシュ値だけを公開するWebサイトが作りたかったです
考えました!我流なのでもっといい方法あるかも これってstring? number? 9
やりかた これってstring? number? 10
やりかた 11 deploy.yaml (publicのGitHub Actions) workflow_dispatchを設定しておく action.yaml (privateのGitHub Actions) deploy.yamlのworkflowを発火する
Personal Access Tokenが必要!
やりかた これってstring? number? 12
やりかた これってstring? number? 13 • actions/checkoutは別リポジトリの特定のブランチからcheckoutできる • さっきとは別のPersonal Access Tokenが必要!
• 下の例ではprivateディレクトリを作成し、特定のリポジトリのmainブラン チをそこへ保存しています • この後の処理で、公開したくないファイルを削除、ビルド後のminifyされ たファイルだけを公開、などを行います ←publicの workflow file
乞食の方々、ご清聴ありがとうございました! これってstring? number? 14 まとめスライドで特に言うこともないので、 もう一度Twitterのアカウントでも書いとき ます。 @ryusei_ishika