<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ryan Febriansyah</title>
    <description>The latest articles on Forem by Ryan Febriansyah (@sodrooome).</description>
    <link>https://forem.com/sodrooome</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F452720%2F7382fb0c-a3ce-40c4-8df9-e99002756085.jpeg</url>
      <title>Forem: Ryan Febriansyah</title>
      <link>https://forem.com/sodrooome</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sodrooome"/>
    <language>en</language>
    <item>
      <title>Github Actions for Documentation</title>
      <dc:creator>Ryan Febriansyah</dc:creator>
      <pubDate>Sun, 06 Sep 2020 12:06:56 +0000</pubDate>
      <link>https://forem.com/sodrooome/github-actions-for-documentation-20hp</link>
      <guid>https://forem.com/sodrooome/github-actions-for-documentation-20hp</guid>
      <description>&lt;h3&gt;
  
  
  My Workflow
&lt;/h3&gt;

&lt;p&gt;it was my first time using github actions to deploy my project documentation automatically. Previously, deployment for documentation itself was done "conventionally" and the exists of github actions is arguably very helpful for me. For the example itself, it will be deploying for Mkdocs site to github pages.&lt;/p&gt;

&lt;h3&gt;
  
  
  Submission Category
&lt;/h3&gt;

&lt;p&gt;DIY Deployments&lt;/p&gt;

&lt;h3&gt;
  
  
  Yaml File or Link to Code
&lt;/h3&gt;

&lt;p&gt;This is what my configuration looks like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name: Build
on:
  push:
    branches: master

jobs:
  build:
    name: Deploy docs
    runs-on: ubuntu-latest
    steps:
      - name: Checkout master
        uses: actions/checkout@v1

      - name: Deploy docs
        uses: mhausenblas/mkdocs-deploy-gh-pages@1.11
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The configuration itself it's pretty simple, but there are two ways for generating and building your documentation into github pages. The first way is to use a &lt;code&gt;PERSONAL_TOKEN&lt;/code&gt; that we can create a secret key in the our repository, and the second way is to use &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; that automatically generated by github actions when a workflow runs so it's pretty convenient.&lt;/p&gt;

&lt;p&gt;However, it's highly recommended to use a &lt;code&gt;PERSONAL_TOKEN&lt;/code&gt; because it's safer rather than use &lt;code&gt;GITHUB_TOKEN&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;This is the link for my github actions repository :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/sodrooome/pure-datastructures"&gt;https://github.com/sodrooome/pure-datastructures&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please let me know if you have any feedback or if you want me to add new features! Thank you!&lt;/p&gt;

</description>
      <category>actionshackathon</category>
      <category>github</category>
    </item>
  </channel>
</rss>
