Skip to content

Commit

Permalink
ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
hirisave committed Oct 14, 2024
1 parent 650d5fe commit 3d9f866
Show file tree
Hide file tree
Showing 23 changed files with 597 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish to GH Pages
on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true

- name: Checkout destination
uses: actions/checkout@v3
if: github.ref == 'refs/heads/main'
with:
ref: gh-pages
path: built-site

- name: Setup Hugo
run: |
curl -L -o /tmp/hugo.tar.gz 'https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_linux-amd64.tar.gz'
tar -C ${RUNNER_TEMP} -zxvf /tmp/hugo.tar.gz hugo
- name: Build
run: ${RUNNER_TEMP}/hugo

- name: Deploy
if: github.ref == 'refs/heads/main'
run: |
cp -R public/* ${GITHUB_WORKSPACE}/built-site/
cd ${GITHUB_WORKSPACE}/built-site
git add .
git config user.name 'hirisave'
git config user.email 'sachin.manjunath@lumen.com'
git commit -m 'Updated site'
git push
Empty file added .hugo_build.lock
Empty file.
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
11 changes: 11 additions & 0 deletions content/docs/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = 'Test'
date = 2024-10-14T00:09:55-05:00
draft = false
+++

###Test Page 001
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.



4 changes: 4 additions & 0 deletions hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
baseURL: "https://hirisave.github.io/pages/"
languageCode: en-us
title: Sachin
theme: maverick
58 changes: 58 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!doctype html>
<html lang="en">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Liste - //localhost:1313/">
<title>404 Page not found | Sachin</title>
<meta name="description" content="">
<meta property="og:url" content="//localhost:1313/404.html">
<meta property="og:site_name" content="Sachin">
<meta property="og:title" content="404 Page not found">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="website">


<meta itemprop="name" content="404 Page not found">

<link rel="canonical" href="//localhost:1313/404.html">
<link rel="icon" href="//localhost:1313//assets/favicon.ico">
<link rel="dns-prefetch" href="https://www.google-analytics.com">
<link href="https://www.google-analytics.com" rel="preconnect" crossorigin>
<link rel="alternate" type="application/atom+xml" title="Sachin" href="//localhost:1313//atom.xml" />
<link rel="alternate" type="application/json" title="Sachin" href="//localhost:1313//feed.json" />
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bricolage+Grotesque">


<style>*,:after,:before{box-sizing:border-box;padding:0}body{font:1rem/1.5 bricolage grotesque,-apple-system,BlinkMacSystemFont,segoe ui,Helvetica,Arial,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:2rem;background:#fffdfa;color:#000}.skip-link{position:absolute;top:-40px;left:0;background:#eee;z-index:100}.skip-link:focus{top:0}header{line-height:2;padding-bottom:1.5rem}.link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}.time{font-variant-numeric:tabular-nums;white-space:nowrap}blockquote{border-left:5px solid #eee;padding-left:1rem;margin:0}a,a:visited{color:inherit}a:hover,a.heading-link{text-decoration:none}pre{padding:.5rem;overflow:auto;overflow-x:scroll;overflow-wrap:normal}code,pre{font-family:San Francisco Mono,Monaco,consolas,lucida console,dejavu sans mono,bitstream vera sans mono,monospace;font-size:normal;font-size:small;background:#eee}code{margin:.1rem;border:none}ul{list-style-type:square}ul,ol{padding-left:1.2rem}.list{line-height:2;list-style-type:none;padding-left:0}.list li{padding-bottom:.1rem}.meta{color:#777}.content{max-width:70ch;margin:0 auto}header{line-height:2;display:flex;justify-content:space-between;padding-bottom:1rem}header a{text-decoration:none}header ul{list-style-type:none;padding:0}header li,header a{display:inline}h2.post{padding-top:.5rem}header ul a:first-child{padding-left:1rem}.nav{height:1px;background:#000;content:'';max-width:10%}.list li{display:flex;align-items:baseline}.list li time{flex:initial}.hr-list{margin-top:0;margin-bottom:0;margin-right:.5rem;margin-left:.5rem;height:1px;border:0;border-bottom:1px dotted #ccc;flex:1 0 1rem}.m,hr{border:0;margin:3rem 0}img{max-width:100%;height:auto}.post-date{margin:5% 0}.index-date{color:#9a9a9a}.animate-blink{animation:opacity 1s infinite;opacity:1}@keyframes opacity{0%{opacity:1}50%{opacity:.5}100%{opacity:0}}.tags{display:flex;justify-content:space-between}.tags ul{padding:0;margin:0}.tags li{display:inline}.avatar{height:120px;width:120px;position:relative;margin:-10px 0 0 15px;float:right;border-radius:50%}table{width:100%;border-collapse:collapse}th,td{border:1px solid #ddd;text-align:left;padding:8px}th{background-color:#f2f2f2} </style>



</head>

<body>
<a class="skip-link" href="#main">Skip to main</a>
<main id="main">
<div class="content">
<header>
<p style="padding: 0;margin: 0;">
<a href="/">
<b>Sachin</b>
<span class="text-stone-500 animate-blink"></span>
</a>
</p>
<ul style="padding: 0;margin: 0;">


</li>
</ul>
</header>
<hr class="hr-list" style="padding: 0;margin: 0;">
<p>The page you requested doesn't exist.</p>
</div>
</main>
</body>
</html>

Binary file added public/assets/favicon.ico
Binary file not shown.
62 changes: 62 additions & 0 deletions public/categories/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!doctype html>
<html lang="en">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Liste - //localhost:1313/">
<title>Categories | Sachin</title>
<meta name="description" content="">
<meta property="og:url" content="//localhost:1313/categories/">
<meta property="og:site_name" content="Sachin">
<meta property="og:title" content="Categories">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="website">


<meta itemprop="name" content="Categories">

<link rel="canonical" href="//localhost:1313/categories/">
<link rel="icon" href="//localhost:1313//assets/favicon.ico">
<link rel="dns-prefetch" href="https://www.google-analytics.com">
<link href="https://www.google-analytics.com" rel="preconnect" crossorigin>
<link rel="alternate" type="application/atom+xml" title="Sachin" href="//localhost:1313//atom.xml" />
<link rel="alternate" type="application/json" title="Sachin" href="//localhost:1313//feed.json" />
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bricolage+Grotesque">


<style>*,:after,:before{box-sizing:border-box;padding:0}body{font:1rem/1.5 bricolage grotesque,-apple-system,BlinkMacSystemFont,segoe ui,Helvetica,Arial,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:2rem;background:#fffdfa;color:#000}.skip-link{position:absolute;top:-40px;left:0;background:#eee;z-index:100}.skip-link:focus{top:0}header{line-height:2;padding-bottom:1.5rem}.link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}.time{font-variant-numeric:tabular-nums;white-space:nowrap}blockquote{border-left:5px solid #eee;padding-left:1rem;margin:0}a,a:visited{color:inherit}a:hover,a.heading-link{text-decoration:none}pre{padding:.5rem;overflow:auto;overflow-x:scroll;overflow-wrap:normal}code,pre{font-family:San Francisco Mono,Monaco,consolas,lucida console,dejavu sans mono,bitstream vera sans mono,monospace;font-size:normal;font-size:small;background:#eee}code{margin:.1rem;border:none}ul{list-style-type:square}ul,ol{padding-left:1.2rem}.list{line-height:2;list-style-type:none;padding-left:0}.list li{padding-bottom:.1rem}.meta{color:#777}.content{max-width:70ch;margin:0 auto}header{line-height:2;display:flex;justify-content:space-between;padding-bottom:1rem}header a{text-decoration:none}header ul{list-style-type:none;padding:0}header li,header a{display:inline}h2.post{padding-top:.5rem}header ul a:first-child{padding-left:1rem}.nav{height:1px;background:#000;content:'';max-width:10%}.list li{display:flex;align-items:baseline}.list li time{flex:initial}.hr-list{margin-top:0;margin-bottom:0;margin-right:.5rem;margin-left:.5rem;height:1px;border:0;border-bottom:1px dotted #ccc;flex:1 0 1rem}.m,hr{border:0;margin:3rem 0}img{max-width:100%;height:auto}.post-date{margin:5% 0}.index-date{color:#9a9a9a}.animate-blink{animation:opacity 1s infinite;opacity:1}@keyframes opacity{0%{opacity:1}50%{opacity:.5}100%{opacity:0}}.tags{display:flex;justify-content:space-between}.tags ul{padding:0;margin:0}.tags li{display:inline}.avatar{height:120px;width:120px;position:relative;margin:-10px 0 0 15px;float:right;border-radius:50%}table{width:100%;border-collapse:collapse}th,td{border:1px solid #ddd;text-align:left;padding:8px}th{background-color:#f2f2f2} </style>



</head>

<body>
<a class="skip-link" href="#main">Skip to main</a>
<main id="main">
<div class="content">
<header>
<p style="padding: 0;margin: 0;">
<a href="/">
<b>Sachin</b>
<span class="text-stone-500 animate-blink"></span>
</a>
</p>
<ul style="padding: 0;margin: 0;">


</li>
</ul>
</header>
<hr class="hr-list" style="padding: 0;margin: 0;">
<section>

<ul reversed class="list">

</ul>
</section>
</div>
</main>
</body>
</html>
11 changes: 11 additions & 0 deletions public/categories/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on Sachin</title>
<link>//localhost:1313/categories/</link>
<description>Recent content in Categories on Sachin</description>
<generator>Hugo</generator>
<language>en-us</language>
<atom:link href="//localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
71 changes: 71 additions & 0 deletions public/docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!doctype html>
<html lang="en">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Liste - //localhost:1313/">
<title>Docs | Sachin</title>
<meta name="description" content="">
<meta property="og:url" content="//localhost:1313/docs/">
<meta property="og:site_name" content="Sachin">
<meta property="og:title" content="Docs">
<meta property="og:locale" content="en_us">
<meta property="og:type" content="website">


<meta itemprop="name" content="Docs">
<meta itemprop="datePublished" content="2024-10-14T00:09:55-05:00">
<meta itemprop="dateModified" content="2024-10-14T00:09:55-05:00">

<link rel="canonical" href="//localhost:1313/docs/">
<link rel="icon" href="//localhost:1313//assets/favicon.ico">
<link rel="dns-prefetch" href="https://www.google-analytics.com">
<link href="https://www.google-analytics.com" rel="preconnect" crossorigin>
<link rel="alternate" type="application/atom+xml" title="Sachin" href="//localhost:1313//atom.xml" />
<link rel="alternate" type="application/json" title="Sachin" href="//localhost:1313//feed.json" />
<link rel="shortcut icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bricolage+Grotesque">


<style>*,:after,:before{box-sizing:border-box;padding:0}body{font:1rem/1.5 bricolage grotesque,-apple-system,BlinkMacSystemFont,segoe ui,Helvetica,Arial,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:2rem;background:#fffdfa;color:#000}.skip-link{position:absolute;top:-40px;left:0;background:#eee;z-index:100}.skip-link:focus{top:0}header{line-height:2;padding-bottom:1.5rem}.link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}.time{font-variant-numeric:tabular-nums;white-space:nowrap}blockquote{border-left:5px solid #eee;padding-left:1rem;margin:0}a,a:visited{color:inherit}a:hover,a.heading-link{text-decoration:none}pre{padding:.5rem;overflow:auto;overflow-x:scroll;overflow-wrap:normal}code,pre{font-family:San Francisco Mono,Monaco,consolas,lucida console,dejavu sans mono,bitstream vera sans mono,monospace;font-size:normal;font-size:small;background:#eee}code{margin:.1rem;border:none}ul{list-style-type:square}ul,ol{padding-left:1.2rem}.list{line-height:2;list-style-type:none;padding-left:0}.list li{padding-bottom:.1rem}.meta{color:#777}.content{max-width:70ch;margin:0 auto}header{line-height:2;display:flex;justify-content:space-between;padding-bottom:1rem}header a{text-decoration:none}header ul{list-style-type:none;padding:0}header li,header a{display:inline}h2.post{padding-top:.5rem}header ul a:first-child{padding-left:1rem}.nav{height:1px;background:#000;content:'';max-width:10%}.list li{display:flex;align-items:baseline}.list li time{flex:initial}.hr-list{margin-top:0;margin-bottom:0;margin-right:.5rem;margin-left:.5rem;height:1px;border:0;border-bottom:1px dotted #ccc;flex:1 0 1rem}.m,hr{border:0;margin:3rem 0}img{max-width:100%;height:auto}.post-date{margin:5% 0}.index-date{color:#9a9a9a}.animate-blink{animation:opacity 1s infinite;opacity:1}@keyframes opacity{0%{opacity:1}50%{opacity:.5}100%{opacity:0}}.tags{display:flex;justify-content:space-between}.tags ul{padding:0;margin:0}.tags li{display:inline}.avatar{height:120px;width:120px;position:relative;margin:-10px 0 0 15px;float:right;border-radius:50%}table{width:100%;border-collapse:collapse}th,td{border:1px solid #ddd;text-align:left;padding:8px}th{background-color:#f2f2f2} </style>



</head>

<body>
<a class="skip-link" href="#main">Skip to main</a>
<main id="main">
<div class="content">
<header>
<p style="padding: 0;margin: 0;">
<a href="/">
<b>Sachin</b>
<span class="text-stone-500 animate-blink"></span>
</a>
</p>
<ul style="padding: 0;margin: 0;">


</li>
</ul>
</header>
<hr class="hr-list" style="padding: 0;margin: 0;">
<section>

<ul reversed class="list">

<li>
<a class="link" href="//localhost:1313/docs/test/" title="Test">Test
</a>
<hr class="hr-list">
<time class="g time" datetime="2024-10-14">14/10/24</time>
</li>

</ul>
</section>
</div>
</main>
</body>
</html>
19 changes: 19 additions & 0 deletions public/docs/index.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Docs on Sachin</title>
<link>//localhost:1313/docs/</link>
<description>Recent content in Docs on Sachin</description>
<generator>Hugo</generator>
<language>en-us</language>
<lastBuildDate>Mon, 14 Oct 2024 00:09:55 -0500</lastBuildDate>
<atom:link href="//localhost:1313/docs/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Test</title>
<link>//localhost:1313/docs/test/</link>
<pubDate>Mon, 14 Oct 2024 00:09:55 -0500</pubDate>
<guid>//localhost:1313/docs/test/</guid>
<description>&lt;p&gt;###Test Page 001&#xA;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&lt;/p&gt;</description>
</item>
</channel>
</rss>
Loading

0 comments on commit 3d9f866

Please sign in to comment.