<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GitHub Actions on Solarized Sublime Sekai</title>
    <link>https://vincenttam.gitlab.io/tags/github-actions/</link>
    <description>Recent content in GitHub Actions on Solarized Sublime Sekai</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 23 Aug 2021 16:43:38 +0200</lastBuildDate>
    <atom:link href="https://vincenttam.gitlab.io/tags/github-actions/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Deploy Hugo Theme exampleSite With Github Actions</title>
      <link>https://vincenttam.gitlab.io/post/2021-03-06-deploy-hugo-theme-examplesite-with-github-actions/</link>
      <pubDate>Sat, 06 Mar 2021 13:39:05 +0100</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2021-03-06-deploy-hugo-theme-examplesite-with-github-actions/</guid>
      <description>&lt;h3 id=&#34;motivation&#34;&gt;Motivation&lt;/h3&gt;&#xA;&lt;p&gt;To test PRs on the upstream of a &lt;a href=&#34;https://themes.gohugo.io/&#34;&gt;Hugo theme&lt;/a&gt; by setting up a testing&#xA;branch.&lt;/p&gt;&#xA;&lt;h3 id=&#34;goal&#34;&gt;Goal&lt;/h3&gt;&#xA;&lt;p&gt;To deploy a forked GitHub repo for a Hugo theme with &lt;code&gt;exampleSite&lt;/code&gt; to GitHub&#xA;Pages using &lt;a href=&#34;https://github.com/features/actions&#34;&gt;GitHub Actions&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The whole article is based on &lt;a href=&#34;https://github.com/VincentTam/hugo-future-imperfect-slim&#34;&gt;my fork of Hugo Future Imperfect Slim&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;references&#34;&gt;References&lt;/h3&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/peaceiris/actions-hugo&#34;&gt;GitHub Actions for Hugo&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;A &lt;a href=&#34;https://stackoverflow.com/q/59383624/3184351&#34;&gt;Stack Overflow question showing &lt;code&gt;pwd&lt;/code&gt; in GitHub Actions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;A &lt;a href=&#34;https://discourse.gohugo.io/t/how-do-i-do-theme-development-with-an-example-site-in-the-repo/2136/10&#34;&gt;Hugo Discourse post about testing &lt;code&gt;exampleSite&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;difficulties&#34;&gt;Difficulties&lt;/h3&gt;&#xA;&lt;p&gt;I had failed for about ten times before I got the job done.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Set up GitHub Actions for Beautiful Jekyll</title>
      <link>https://vincenttam.gitlab.io/post/2019-09-02-set-up-github-actions-for-beautiful-jekyll/</link>
      <pubDate>Mon, 02 Sep 2019 23:23:25 +0200</pubDate>
      <guid>https://vincenttam.gitlab.io/post/2019-09-02-set-up-github-actions-for-beautiful-jekyll/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/features/actions&#34;&gt;GitHub Actions&lt;/a&gt; provide &lt;a href=&#34;https://help.github.com/en/articles/setting-up-continuous-integration-on-github&#34;&gt;CI/CD support&lt;/a&gt;, which might interest many&#xA;&lt;a href=&#34;https://github.com&#34;&gt;GitHub&lt;/a&gt; users.  I&amp;rsquo;ve applied for this feature a week ago.  Luckily, my&#xA;application for the trial was approved by &lt;a href=&#34;https://github.com&#34;&gt;GitHub&lt;/a&gt;.  Tonight, I&amp;rsquo;ve found the&#xA;motivation for making my first step in my forked repo&#xA;&lt;a href=&#34;https://github.com/VincentTam/beautiful-jekyll&#34;&gt;VincentTam/beautiful-jekyll&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;My setup:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Clicked on the &amp;ldquo;&lt;strong&gt;Action&lt;/strong&gt;&amp;rdquo; tab of the repo.&lt;/li&gt;&#xA;&lt;li&gt;Chose the &lt;a href=&#34;https://github.com/actions/starter-workflows/blob/master/ci/jekyll.yml&#34;&gt;workflow file template for &lt;strong&gt;Jekyll&lt;/strong&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Added a slash &lt;code&gt;/&lt;/code&gt; in front of &lt;code&gt;srv&lt;/code&gt; in &lt;code&gt;chmod 777 srv/jekyll&lt;/code&gt;, so as to fix&#xA;the &lt;a href=&#34;https://github.com/VincentTam/beautiful-jekyll/commit/2d0370a1f93818a8a8e19dc364e8906ee76aedd7/checks#step:3:6&#34;&gt;&amp;ldquo;no such file or directory&amp;rdquo; error&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Added the parameter &lt;code&gt;repository: {your repo name}&lt;/code&gt; in the site config file&#xA;&lt;code&gt;_config.yml&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The action should be &lt;a href=&#34;https://github.com/VincentTam/beautiful-jekyll/runs/210132383&#34;&gt;successfully configured&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
