{"blog_url":"https://tech.natsuneko.blog/","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/yunagi_n/","categories":["GitHub"],"url":"https://tech.natsuneko.blog/entry/2020/02/17/github-actions-only-specified-branch","height":"190","version":"1.0","published":"2020-02-16 15:00:00","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2020%2F02%2F17%2Fgithub-actions-only-specified-branch\" title=\"GitHub Actions \u3067\u7279\u5b9a\u306e branch \u3060\u3051\u51e6\u7406\u3092\u5b9f\u884c\u3057\u305f\u3044 - \u306a\u3064\u306d\u3053\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u51e6\u7406\u306e\u4e00\u90e8\u3060\u3051\u3001 master \u3067\u306e\u307f\u51e6\u7406\u3092\u884c\u3044\u305f\u3044\u3001\u3068\u304b\u3059\u308b\u65b9\u6cd5\u3002 GitHub Actions \u306e YAML \u3067\u306f\u3001\u5404 job \u3068 steps \u306b\u5bfe\u3057\u3066\u3001 if \u6761\u4ef6\u306e\u6307\u5b9a\u304c\u4f7f\u3048\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3046\u3002 \u4f8b\u3048\u3070\u3053\u3093\u306a\u611f\u3058 - name: deploy to Netlify if: success() && github.ref == 'refs/heads/master' run: | yarn global add netlify-cli $(yarn global bin)/netlify deploy --prod --dir=./dist --site=$NETLIFY_SITE_ID\u2026","image_url":null,"provider_url":"https://hatena.blog","title":"GitHub Actions \u3067\u7279\u5b9a\u306e branch \u3060\u3051\u51e6\u7406\u3092\u5b9f\u884c\u3057\u305f\u3044","blog_title":"\u306a\u3064\u306d\u3053\u30e1\u30e2","width":"100%","author_name":"yunagi_n"}