Skip to content

Commit 4fa8d1b

Browse files
Update site at Thu Feb 27 13:39:25 UTC 2025
1 parent dadccd6 commit 4fa8d1b

File tree

6 files changed

+239
-200
lines changed

6 files changed

+239
-200
lines changed

docs/archive.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ <h1>Archives</h1>
4141
<a href="./posts/2025-02-27-restructured-and-automated.html">Restructured and Added Some Automation for This Blog</a> - February 27, 2025
4242
</li>
4343

44+
<li>
45+
<a href="./posts/2025-02-27-make-new-post-via-github-pull-request.html">Create New Posts by Making Pull Requests</a> - February 27, 2025
46+
</li>
47+
4448
<li>
4549
<a href="./posts/2024-09-06-july-listenings.html">2024 July & August Listenings</a> - September 6, 2024
4650
</li>

docs/atom.xml

Lines changed: 28 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,34 @@
5353
</article>
5454
]]></summary>
5555
</entry>
56+
<entry>
57+
<title>Create New Posts by Making Pull Requests</title>
58+
<link href="http://usefulalgorithm.github.io/posts/2025-02-27-make-new-post-via-github-pull-request.html" />
59+
<id>http://usefulalgorithm.github.io/posts/2025-02-27-make-new-post-via-github-pull-request.html</id>
60+
<published>2025-02-27T00:00:00Z</published>
61+
<updated>2025-02-27T00:00:00Z</updated>
62+
<summary type="html"><![CDATA[<article>
63+
<section class="header">
64+
Posted on February 27, 2025
65+
66+
<br>
67+
68+
Tags: <a title="All pages tagged &#39;about this site&#39;." href="/tags/about%20this%20site.html" rel="tag">about this site</a>
69+
70+
</section>
71+
<section>
72+
<p>This is a little easier than I thought it would be. So basically it generates a post from a pull request’s body and commits it to branch. I already have an action that reruns the site generator whenever something new appears in directory, so in effect I just need to write whatever I want to write in the PR’s body, and press when I’m happy with it.</p>
73+
<p>More specifically there are 4 GitHub actions in action (no pun intended):</p>
74+
<ol type="1">
75+
<li>Creates a PR by running an action: I want to be able to do it very easily, with this I only need to type in the title of the post and a new PR will be populated. Note that in order to make a new PR, I need to insert something into the new commit. That something is a file named .</li>
76+
<li>Generates the new post file in directory: when I’m good with the PR body and merge the PR, an action will pipe the body into the new file. The draft iteme will also be removed.</li>
77+
<li>Run the Haskell site generator. The action detects if anything’s changed in , and if so generates the static site. The generator itself doesn’t change much, the action nicely takes care of caching it so that it doesn’t spend twenty minutes compiling hakyll.</li>
78+
<li>Deploy to GH pages. I didn’t write this myself.</li>
79+
</ol>
80+
</section>
81+
</article>
82+
]]></summary>
83+
</entry>
5684
<entry>
5785
<title>2024 July & August Listenings</title>
5886
<link href="http://usefulalgorithm.github.io/posts/2024-09-06-july-listenings.html" />
@@ -858,105 +886,5 @@
858886
</article>
859887
]]></summary>
860888
</entry>
861-
<entry>
862-
<title>2023 October Listenings</title>
863-
<link href="http://usefulalgorithm.github.io/posts/2023-11-11-october-listenings.html" />
864-
<id>http://usefulalgorithm.github.io/posts/2023-11-11-october-listenings.html</id>
865-
<published>2023-11-11T00:00:00Z</published>
866-
<updated>2023-11-11T00:00:00Z</updated>
867-
<summary type="html"><![CDATA[<article>
868-
<section class="header">
869-
Posted on November 11, 2023
870-
871-
<br>
872-
873-
Tags: <a title="All pages tagged &#39;music and stuff&#39;." href="/tags/music%20and%20stuff.html" rel="tag">music and stuff</a>
874-
875-
</section>
876-
<section>
877-
<h2 id="sprain---lamb-as-effigy">Sprain - Lamb as Effigy</h2>
878-
<p><img src="https://f4.bcbits.com/img/a0587477614_16.jpg" /></p>
879-
<p>Experimental post-noise rock / drone. Strong AOTY candidate.</p>
880-
<p>Release date: 2023-09-01</p>
881-
<p>[9.1/10]</p>
882-
<h2 id="sampha---lahai">Sampha - Lahai</h2>
883-
<p><img src="https://f4.bcbits.com/img/a1179241798_16.jpg" /></p>
884-
<p>I love basically every track on this album.</p>
885-
<p>Release date: 2023-10-20</p>
886-
<p>[8.6/10]</p>
887-
<h2 id="marica-bc---spike-field">Marica BC - Spike Field</h2>
888-
<p><img src="https://f4.bcbits.com/img/a0787557467_16.jpg" /></p>
889-
<p>Spectral, melancholic dream pop / folk. Compared to <code>Hyaline</code> this one features lusher instrumentation and is overall better produced. The songs are incredibly well written. Great album! FFO Grouper and Midwife.</p>
890-
<p>Release date: 2023-10-20</p>
891-
<p>[8.4/10]</p>
892-
<h2 id="klara-lewis-nik-colk-void---full-on">Klara Lewis &amp; Nik Colk Void - Full On</h2>
893-
<p><img src="https://f4.bcbits.com/img/a2408292926_16.jpg" /></p>
894-
<p>FFO Curd Duca, Actress. Abstract collage music.</p>
895-
<p>Release date: 2023-06-30</p>
896-
<p>[8.3/10]</p>
897-
<h2 id="mckinley-dixon---beloved-paradise-jazz">McKinley Dixon - Beloved! Paradise! Jazz?</h2>
898-
<p><img src="https://f4.bcbits.com/img/a1333962670_16.jpg" /></p>
899-
<p>Jazz-rap / conscious hip-hop. A great album! Awesome jazz beats and awesome lyrics.</p>
900-
<p>Release date: 2023-06-02</p>
901-
<p>[8.3/10]</p>
902-
<h2 id="shygirl---nymphs">Shygirl - Nymphs</h2>
903-
<p><img src="https://f4.bcbits.com/img/a2087620991_16.jpg" /></p>
904-
<p>Hypnogogic R&amp;B / trap. FFO Sega Bodega.</p>
905-
<p>Release date: 2022-09-30</p>
906-
<p>[8.3/10]</p>
907-
<h2 id="sg---for-lovers-only-rain-suite">SG - For Lovers Only / Rain Suite</h2>
908-
<p><img src="https://f4.bcbits.com/img/a2882953685_16.jpg" /></p>
909-
<p>It’s like the <a href="https://www.youtube.com/@Knobs">Knobs</a> or <a href="https://www.youtube.com/@collectoremitter">collector//emitter</a> pedal demos extended to be a standalone album. Dreamy lo-fi guitar ambient music.</p>
910-
<p>Release date: 2023-10-06</p>
911-
<p>[8.2/10]</p>
912-
<h2 id="maral---ground-groove">Maral - Ground Groove</h2>
913-
<p><img src="https://f4.bcbits.com/img/a2500288567_16.jpg" /></p>
914-
<p>Sprawling lo-fi industrial dub, or “folk club” as the artist described her music. Maral is an Iranian-American artist, and a lot of the samples on this album is from her personal archive of Iranian folk, pop &amp; classical albums.</p>
915-
<p>Release date: 2022-10-18</p>
916-
<p>[8.2/10]</p>
917-
<h2 id="modelactriz---dogsbody">Model/Actriz - Dogsbody</h2>
918-
<p><img src="https://f4.bcbits.com/img/a2228512258_16.jpg" /></p>
919-
<p>Angular post-punk. I like the last track, which is the most tranquil track among the album.</p>
920-
<p>Release date: 2023-02-24</p>
921-
<p>[8.0/10]</p>
922-
<h2 id="various-artists---v4-visions-of-love-androids">Various Artists - V4 Visions: Of Love &amp; Androids</h2>
923-
<p><img src="https://f4.bcbits.com/img/a0365594782_16.jpg" /></p>
924-
<p>House / funk / R&amp;B. Basically 90’s music. I like the R&amp;B cuts on the first disc.</p>
925-
<p>Release date: 2022-03-11</p>
926-
<p>[7.6/10]</p>
927-
<h2 id="the-armed---perfect-saviors">The Armed - Perfect Saviors</h2>
928-
<p><img src="https://f4.bcbits.com/img/a2690079050_16.jpg" /></p>
929-
<p>Poppy alternative punk. Not nearly as explosive as <code>Ultrapop</code>, instead this is much more in line with the usual alt-rock path.</p>
930-
<p>Release date: 2023-08-25</p>
931-
<p>[7.3/10]</p>
932-
<h2 id="oneohtrix-point-never---again">Oneohtrix Point Never - Again</h2>
933-
<p><img src="https://f4.bcbits.com/img/a4277554650_16.jpg" /></p>
934-
<p>Compared to his earlier stuff this is extremely safe.</p>
935-
<p>Release date: 2023-09-29</p>
936-
<p>[6.8/10]</p>
937-
<h2 id="lee-gamble---models">Lee Gamble - Models</h2>
938-
<p><img src="https://f4.bcbits.com/img/a2394588006_16.jpg" /></p>
939-
<p>Ambient pop. The vocals on this album is generated by AI. The theme he’s exploring on this album is very Hauntological, but I’d say it’s something one have to do some extra digging to find out.</p>
940-
<p>Release date: 2023-07-06</p>
941-
<p>[6.7/10]</p>
942-
<h2 id="eartheater---powder">Eartheater - Powder</h2>
943-
<p><img src="https://f4.bcbits.com/img/a2558704024_16.jpg" /></p>
944-
<p>Art pop / experimental R&amp;B. I think there are just too many producers on this album, making this album lacking a bit in terms of songwriting coherence, and sounding more like it’s from a generic pop artist that claims to be avant garde but doesn’t really know what they’re doing. There are cool tracks here and there, but as a whole it’s just a bit too all over the place.</p>
945-
<p>Release date: 2023-09-20</p>
946-
<p>[6.6/10]</p>
947-
<h2 id="sofia-kourtesis---madres">Sofia Kourtesis - Madres</h2>
948-
<p><img src="https://f4.bcbits.com/img/a4189602856_16.jpg" /></p>
949-
<p>Club-friendly electro-pop.</p>
950-
<p>Release date: 2023-10-27</p>
951-
<p>[6.3/10]</p>
952-
<h2 id="james-blake---playing-robots-into-heaven">James Blake - Playing Robots Into Heaven</h2>
953-
<p><img src="https://i.scdn.co/image/ab67616d0000b273921f7aa6349a070b6f26b3ff" /></p>
954-
<p>UK garage. While I still don’t really dig the minimal dubstep / r&amp;b fusion sound he’s going for all that much, this is a breath of fresh air compared with his previous more pop oriented albums.</p>
955-
<p>Release date: 2023-09-08</p>
956-
<p>[6.1/10]</p>
957-
</section>
958-
</article>
959-
]]></summary>
960-
</entry>
961889

962890
</feed>

docs/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ <h2>Posts</h2>
4747
<a href="./posts/2025-02-27-restructured-and-automated.html">Restructured and Added Some Automation for This Blog</a> - February 27, 2025
4848
</li>
4949

50+
<li>
51+
<a href="./posts/2025-02-27-make-new-post-via-github-pull-request.html">Create New Posts by Making Pull Requests</a> - February 27, 2025
52+
</li>
53+
5054
<li>
5155
<a href="./posts/2024-09-06-july-listenings.html">2024 July & August Listenings</a> - September 6, 2024
5256
</li>
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="x-ua-compatible" content="ie=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta property="og:image" content="/images/plane-of-immanence.png">
8+
<title>Blog without Organs - Create New Posts by Making Pull Requests</title>
9+
<link rel="stylesheet" href="../css/default.css" />
10+
<link rel="stylesheet" href="../css/syntax.css" />
11+
<link rel="icon" href="../images/favicon.ico" />
12+
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro|Roboto+Mono:300|Noto+Sans+TC:300&display=swap" rel="stylesheet">
13+
<!-- <script src="https://kit.fontawesome.com/5b5c2f44f2.js"></script> -->
14+
<script type="text/javascript"> (function() { var css =
15+
document.createElement('link'); css.href =
16+
'https://use.fontawesome.com/releases/v5.1.0/css/all.css'; css.rel =
17+
'stylesheet'; css.type = 'text/css';
18+
document.getElementsByTagName('head')[0].appendChild(css); })();
19+
</script>
20+
21+
</head>
22+
<body>
23+
<header>
24+
<div class="logo">
25+
<a href="../">Blog without Organs</a>
26+
</div>
27+
<nav>
28+
<a href="../">Home</a>
29+
<a href="../about.html">About</a>
30+
<a href="../blogroll.html">Blogroll</a>
31+
<a href="../archive.html">Archive</a>
32+
</nav>
33+
</header>
34+
35+
<main role="main">
36+
<h1>Create New Posts by Making Pull Requests</h1>
37+
<article>
38+
<section class="header">
39+
Posted on February 27, 2025
40+
41+
<br>
42+
43+
Tags: <a title="All pages tagged 'about this site'." href="../tags/about%20this%20site.html" rel="tag">about this site</a>
44+
45+
</section>
46+
<section>
47+
<p>This is a little easier than I thought it would be. So basically it generates a post from a pull request’s body and commits it to branch. I already have an action that reruns the site generator whenever something new appears in directory, so in effect I just need to write whatever I want to write in the PR’s body, and press when I’m happy with it.</p>
48+
<p>More specifically there are 4 GitHub actions in action (no pun intended):</p>
49+
<ol type="1">
50+
<li>Creates a PR by running an action: I want to be able to do it very easily, with this I only need to type in the title of the post and a new PR will be populated. Note that in order to make a new PR, I need to insert something into the new commit. That something is a file named .</li>
51+
<li>Generates the new post file in directory: when I’m good with the PR body and merge the PR, an action will pipe the body into the new file. The draft iteme will also be removed.</li>
52+
<li>Run the Haskell site generator. The action detects if anything’s changed in , and if so generates the static site. The generator itself doesn’t change much, the action nicely takes care of caching it so that it doesn’t spend twenty minutes compiling hakyll.</li>
53+
<li>Deploy to GH pages. I didn’t write this myself.</li>
54+
</ol>
55+
</section>
56+
</article>
57+
58+
</main>
59+
60+
61+
<div class="comments">
62+
<h2>Comments</h2>
63+
<div id="disqus_thread"></div>
64+
</div>
65+
<script>
66+
67+
var disqus_config = function () {
68+
this.page.identifier = '/posts/2025-02-27-make-new-post-via-github-pull-request.html';
69+
this.page.url = 'https://usefulalgorithm.github.io/posts/' + '/posts/2025-02-27-make-new-post-via-github-pull-request.html';
70+
};
71+
(function() {
72+
var d = document, s = d.createElement('script');
73+
s.src = 'https://usefulalgorithm.disqus.com/embed.js';
74+
s.setAttribute('data-timestamp', +new Date());
75+
(d.head || d.body).appendChild(s);
76+
})();
77+
</script>
78+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
79+
80+
81+
<div class="contacts">
82+
<a href="https://usefulalgorithm.github.io/rss.xml">
83+
<i class="fas fa-rss"></i>
84+
</a>
85+
<a href="https://github.com/usefulalgorithm">
86+
<i class="fab fa-github"></i>
87+
</a>
88+
<a href="https://www.linkedin.com/in/tsungjulii">
89+
<i class="fab fa-linkedin-in"></i>
90+
</a>
91+
<a href="https://twitter.com/usefulalgorithm">
92+
<i class="fab fa-twitter"></i>
93+
</a>
94+
<a href="mailto:usefulalgorithm@gmail.com">
95+
<i class="far fa-envelope"></i>
96+
</a>
97+
</div>
98+
<footer>
99+
Site proudly generated by
100+
<a href="http://jaspervdj.be/hakyll">Hakyll</a>
101+
</footer>
102+
</body>
103+
</html>

0 commit comments

Comments
 (0)