GitHub Actionsが非圧縮アーティファクトのアップロード・ダウンロードをサポート
本文の状態
日本語全文を表示中
詳細モードで約2分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
GitHub Changelog
GitHubが、GitHub Actionsのワークフロー内で非圧縮アーティファクトのアップロード・ダウンロード機能を追加した。従来は自動的に圧縮されていたが、ユーザーからのフィードバックに基づきワークフローの効率化を図った。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
GitHub Actionsにおいて、ワークフロー内での非圧縮アーティファクトのアップロードとダウンロードがサポートされるようになりました。これまでは、actions/upload-artifactアクションを使ってアーティファクトをアップロードすると、自動的にzip圧縮されていました。actions/download-artifactアクションでのダウンロード時や、ブラウザから直接ダウンロードする際も、ファイルは圧縮された状態でした。多くのユーザーから、この余分な圧縮が不便であり、ワークフローの大きな妨げになっているとの声が寄せられていました。
今回、これらのアクションを拡張し、非圧縮のアーティファクトをアップロードおよびダウンロードできるようになりました。これにより、皆様からお寄せいただいた主な3つの問題が解決されます:
- ブラウザから単一ファイルをダウンロードする際、解凍する必要がなくなります。
- お使いのブラウザがそのファイル形式をネイティブ表示できる場合、ブラウザ内で直接ファイルを閲覧できます。これは、CSSやJSへのリンクを含まない単純なHTMLファイル、画像、マークダウンファイルに最適です。モバイルブラウザも同様に対象となります。
- パーミッションを維持するため、またはサイズを削減するために圧縮ファイルをアップロードする場合、圧縮ファイルがさらに別の圧縮ファイルに包まれる(いわゆる「二重zip問題」)ことがなくなります。
これらの変更は、archiveパラメータをfalseに設定してアップロードされたactions/upload-artifact v7のアーティファクトにのみ適用されます。後方互換性のため、このパラメータのデフォルト値は現在もtrueです。以前にアップロードされたアーティファクトや、このアクションの旧バージョンでアップロードされたアーティファクトは、引き続き圧縮された状態のままです。また、actions/download-artifactアクションを使用している場合は、v8への更新が必要です。
「GitHub Actions now supports uploading and downloading non-zipped artifacts」の投稿は、The GitHub Blogに最初に掲載されました。
原文を表示
GitHub Actions now supports uploading and downloading non-zipped artifacts within workflows. Previously, when you uploaded an artifact using the actions/upload-artifact action it was automatically zipped. Downloading it using the actions/download-artifact action or directly from the browser would download this file zipped. Many users found this additional compression frustrating and told us it added significant friction to their workflows.
We have added support to these actions so that you can upload unzipped artifacts and also download them unzipped. This solves three major problems that you raised to us:
You no longer have to unzip when downloading a single file via the browser.
If your browser supports viewing the file type natively, you can view files directly in your browser. This is great for simple HTML files (without links to CSS or JS), images, or markdown. This includes mobile browsers as well.
If you upload a compressed file to maintain permissions or reduce size, you no longer have a compressed file within another compressed file (i.e., the double zip problem).
These changes only apply to artifacts uploaded with actions/upload-artifact v7 where you have set the archive parameter to false. This value is currently defaulted to true for backwards compatibility. Previously uploaded artifacts and any artifacts uploaded with older versions of the action will continue to be zipped. You will also need to update to v8 of actions/download-artifact if you use that action.
The post GitHub Actions now supports uploading and downloading non-zipped artifacts appeared first on The GitHub Blog.
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み