2021/01/017 追記 : Android 版も書きました! 追記 2021/01/22 コードが間違っていたので修正。 それとビルドネームが github_actios_sample とタイポしていることに気づいた。これはプロジェクトを作る時にミスってしまったらしい。 はじめに Flutter build iOS して Xcode で archive してそれをまた App Store Connect にアップロードして...という作業は面倒くさい。GitHub Actions を使えば push などをトリガーにこのやっかいな作業を自動化してくれるというじゃあないか。しかも、パブリックリポジトリなら無料で使わせていただけるという。これはもう、やるしかない。 すでに周辺知識がある人に向けて main.yml をはじめに載せておく。 いろいろ設定はできるが極力シンプルな形にまとめた。
今回はPythonのプロジェクトのリポジトリを Github Actions で pytest を docker-compose のイメージ上で行う為の練習を行ったのでそのメモを記載します。 前提条件 Github の packages のトークンを作成しておく。 docker login しておく。 Github の 任意のリポジトリにSecretsをpackages操作可能なトークン番号を登録しておく。 (私の環境ではGHCR_IO_TOKENという名前で登録している。) フォルダ構成 repository/ # リポジトリディレクトリ ├ .github/ │ ├ workflows/ │ │ └ sample.yml # Github actionsのファイル ├ project/ │ ├ sample/ #(説明省略) │ │ ├ __init__.py │ │ └ add.py
May 20, 2022 Actions authors can now specify that their action can run in Node.js 16 by specifying runs.using as node16 in the action's action.yml. This is in addition to the existing Node.js 12 support; actions can continue to specify runs.using: node12 to use the Node.js 12 runtime. Runners supporting Node.js 16 actions are available on all GitHub-hosted runners and in GitHub Enterprise Server 3
PHOTOSHOP TOOLS This portion of the site is loaded with free Photoshop Actions, Scripts, and Tool Presets. Feel free to download anything you feel might help with your digital photography. If you find the resources helpful, please consider a donation or the purchase of a print from one of the galleries. Your support will help keep the resources in the Digital Darkroom free to all. Never used a Ph
Open Source4 things you didn’t know you could do with GitHub ActionsGitHub Actions is a powerful platform that empowers your team to go from code to cloud, all from the comfort of your repositories. In this post, I'll walk through a… GitHub Actions is a powerful platform that empowers your team to go from code to cloud, all from the comfort of your repositories. In this post, I’ll walk through a f
Dependabot updates support reusable workflows for GitHub Actions actionsdependabotsecurity-and-compliance March 13, 2023 If you use versioned reusable workflows in GitHub Actions, you can now use Dependabot version updates to keep those workflows up-to-date in your repositories! This is useful for anyone using reusable workflows and pinning references to them from the caller workflow, either by co
For the latest version, see the list of releases. Configuration The following merge options are supported: MERGE_LABELS: The labels that need to be present for a pull request to be merged (using MERGE_METHOD). The default value is automerge. This option can be a comma-separated list of labels that will be checked. All labels in the list need to be present, otherwise the pull request will be skippe
この記事は、筆者が制作したGitHub Actions向けCustom actionであるdependency-cruiser-report-actionを紹介する記事です。 JavaScript / TypeScriptのプログラムではexportによりモジュールとして分割しimport(require) で読み込むことができますが、一度exportで公開してしまうとプロジェクト内のどこからでも読み込むことができてしまいます。 無秩序にimportを増やして依存関係が複雑になるとモジュール間は密結合になります。1つの小さな変更が大規模な障害に発展したり、変更をリリースするまでのリードタイムは伸びていくなどの悪循環に陥ります。 プロダクトを安全にメンテナンスし続けるためにはこの「依存」と立ち向かうことになります。 立ち向かうためのアプローチとしてはフレームワークによる規約の利用、SOLID
イシューに特定のラベルがついたら Slack に通知、というワークフローを作ってみた。ビルトインのアクションの組み合わせのみでできた。 labels (配列)を表示するところがちょっとトリッキー。 gist.github.com これの応用で、 scheduled トリガーを起点にして特定のラベルがついてるイシューの一覧を Slack に通知、というのをやりたいのだが、こちらはビルトインのアクションだけで実現するのは厳しそうだった。 特定のラベルがついてるイシュー一覧をとるのは GraphQL アクションでも、 HTTP アクションでも、 GitHub API 叩けばいける。 Slack 通知もビルトインのアクションでいける。問題は、上流のアクションで得た結果データを下流のアクションに渡すところで、ビルトインの Slack アクションは任意のデータを受け取るようにはできてないので、間を繋ぐ
はじめに GitHub Actions を使用した CI/CD の記事は結構多くなってきました。 しかし GitHub Actions ができることは Travis CI や CircleCI でも可能なテストの実行やデプロイの自動化だけではありません。 GitHub上で普段行うような作業の自動化も容易に実現可能です。 ここではいくつかの例を紹介します。 リポジトリ 今回の記事で紹介する作業自動化を実際に行っているリポジトリの例 https://github.com/technote-space/release-github-actions ワークフロー https://github.com/technote-space/release-github-actions/tree/master/.github/workflows Actions https://github.com/techn
EngineeringProductNew workflow editor for GitHub ActionsEdit your GitHub Actions workflow files easier with features to help you minimize errors and more. It’s now even easier to create and edit a GitHub Actions workflow with the updated editor. We’ve provided inline auto-complete and lint as you type so you can say goodbye to YAML indentation issues and explore the full workflow syntax without go
CLI(command line interface)ツールはRustでも力を入れてりるターゲット。RustはLLVMをバックエンドとしているし、ライブラリも抽象化されている。GUIを扱わない範囲ではWindows/Linux/Macを対象とした移植性があるCLIツールを書きやすい。さらにGitHubではActionを用いたビルドファーム(テストも)がOSSでは利用可能だ。ソースからビルドではなく、多環境向けのバイナリをGitHub Actionsでビルドしてバイナリ配布するための設定について述べる。 2020冬シーズンの篭もりプロジェクトとしてrcというコマンドラインで動作する関数電卓を作成した。リポジトリはhttps://github.com/nkon/rc-rsに、設計ノートはhttps://github.com/nkon/rc-rs/blob/master/NOTE.mdにて公開し
はじめに なかなか上手くいかず、ぐったりする時には音楽を聞いて気を紛らわせています。 8月11日辺りからはTo the Edgeになりました。 そんなぐったりする原因のGitHub Actionsの挙動について、動作を調べる上で事前に理解おきたいハマりな箇所を備忘録込めて書き出してみました。 GitHub ActionsでのAPI呼び出し Actions上でAPIを呼び出す際には、以下の3通りの手段が検討できます。 REST API直接呼び出し octokit/request-actionによる呼び出し MarketPlaces上のActions いずれも結局はAPIを叩いている状態に変わりないのですが、API自体のアップデートが早く、追従する必要のあるoctokitやActionsの対応が遅れることもあります。機能面で充実している時や枯れていない場合にはREST APIを直接呼ぶほうが確
Creating a JavaScript Action The typescript-action repo contains everything you need to get started. Create a Repo from the Template Navigate to https://github.com/actions/typescript-action Click on Use this template to create the repo for your action. Provide a name such as myaction (used in rest of walk through). Clone and Update Update the author element in the package.json file. Dev Workflow T
CommunityOpen SourceGitHub Action Hero: Stefan Zweifel and “git-auto-commit”GitHub Actions gives you the power to automate your workflow. Connect with the tools you know and love. Have more freedom to innovate and be creative. Deploy to any cloud,… GitHub Actions gives you the power to automate your workflow. Connect with the tools you know and love. Have more freedom to innovate and be creative.
タイトル通り、GitHub Actions の入門書。いわゆる技術同人誌で、商業出版されたものではない。 「技術書典 応援祭」で、電子版と紙版のセットを買った。 techbookfest.org 「技術書典 応援祭」は既に終了しているが、電子版は今も BOOTH で買える。 booth.pm そろそろ GitHub Actions を勉強しないとなと思っていたところ、著者の書いた以下の記事が分かりやすかったため、本書も購入した。 ちょうど「技術書典 応援祭」の開催中だったというタイミングも後押しした。 www.kaizenprogrammer.com 「ワークフローとは何か」といった、初歩的なところから概念を整理しているため、初心者でも読み進めていくことができる。 Circle CI を少し弄ったことがある程度の私でも読めたので、CI という概念を何となくでも分かっている人なら、問題なく読
はじめに 自分のチームではA successful Git branching modelに近い感じで、リリースする前にrelease branchを作りそこにfeature branchをmergeしてからテストしてリリースする、という流れで開発からリリースまでのサイクルを回している。 リリースする前に誰かがrelease branchを作成するという作業が手間だったため、GitHub Actionsで自動化できないかと思い、実際やってみたところ意外と簡単にできたので、そこで得られた知識をこの記事にまとめる 実際のコードと説明 それでは実際のactionsのYAMLファイルをもとに細かく説明する。今回使用したYAMLファイルはここにあがっている。 on でフックしたいイベントを定義する GitHub Actionsを作成すると、.github/workflows/xxx.yml が作成さ
Googleアシスタント用アプリを作ってみる お疲れ様です、s.masayaです。 Googleアシスタント用アプリを作る試みです。 早速やっていきましょう。 以下の流れで進めます。 Googleアシスタント プロジェクト作成 アプリ作成 テスト 1.Google アシスタント Googleアシスタントとは、Googleの対話型エージェントです。2016年に発表され、2021年1月時点でGoogle Nestシリーズやスマートフォン等に搭載されています。Googleアシスタントに話かけることで、音楽を再生してくれたり、予定を読み上げてくれたり、ニュースを教えてくれたりします。AIが音声認識を行い、声で操作をすることが可能である点が最も大きな特徴です。 このAIが音声認識を行ってくれる、という機能をサードパーティ製アプリのマン・マシンインタフェースとして利用できたらいいなぁと思っています。
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く