Skip to content

Commit a2dd707

Browse files
committed
nuke(git): Regular commit history cleanup
Initialize repository to clean all commit history using commit history cleaner script Signed-off-by: younsl <[email protected]>
0 parents  commit a2dd707

File tree

900 files changed

+68775
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

900 files changed

+68775
-0
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @younsl

.github/dependabot.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
timezone: "Asia/Seoul"
8+
labels:
9+
- "dependencies"
10+
- "actions"
11+
12+
- package-ecosystem: "gomod"
13+
directory: "/"
14+
schedule:
15+
interval: "daily"
16+
timezone: "Asia/Seoul"
17+
labels:
18+
- "dependencies"
19+
- "gomod"
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Find broken links on a website
2+
run-name: 🔬 Find broken links on a website
3+
4+
on:
5+
# Allows you to run this workflow manually from the Actions tab
6+
workflow_dispatch:
7+
8+
# Runs at 9:00 AM KST every day
9+
schedule:
10+
- cron: '0 0 * * *' # 9:00 AM KST is 0:00 AM UTC
11+
12+
jobs:
13+
deadfinder:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- name: Run DeadFinder
17+
uses: hahwul/[email protected]
18+
id: broken-link
19+
with:
20+
command: sitemap
21+
target: https://younsl.xyz/sitemap.xml
22+
23+
- name: Output Handling
24+
run: echo '${{ steps.broken-link.outputs.output }}'
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Clean Workflow Runs
2+
run-name: 🧹 Clean old workflow runs
3+
4+
on:
5+
schedule:
6+
- cron: '0 * * * *'
7+
workflow_dispatch:
8+
9+
permissions:
10+
actions: write
11+
12+
jobs:
13+
delete:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- name: Delete workflow runs
17+
uses: Mattraks/[email protected]
18+
id: delete
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
repository: ${{ github.repository }}
22+
retain_days: 0
23+
keep_minimum_runs: 0

.github/workflows/deploy.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Deploy hugo site to Github Pages
2+
run-name: 🚀 Deploy hugo site to Github Pages
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: false
18+
19+
defaults:
20+
run:
21+
shell: bash
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-24.04
26+
steps:
27+
- name: Set architecture
28+
id: set-arch
29+
run: |
30+
ARCH=$(uname -m)
31+
if [ "$ARCH" == "x86_64" ]; then
32+
echo "ARCH=amd64" >> $GITHUB_ENV
33+
elif [ "$ARCH" == "aarch64" ]; then
34+
echo "ARCH=arm64" >> $GITHUB_ENV
35+
else
36+
echo "Unsupported architecture: $ARCH"
37+
exit 1
38+
fi
39+
40+
- name: Install Hugo CLI
41+
env:
42+
HUGO_VERSION: 0.144.0
43+
run: |
44+
wget -O ${{ runner.temp }}/hugo.deb \
45+
https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${{ env.HUGO_VERSION }}_linux-${{ env.ARCH }}.deb \
46+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
47+
48+
- name: Install Dart Sass
49+
run: sudo snap install dart-sass
50+
51+
- name: Checkout
52+
uses: actions/checkout@v4
53+
with:
54+
submodules: recursive
55+
56+
- name: Setup Pages
57+
id: pages
58+
uses: actions/configure-pages@v5
59+
60+
- name: Install Node.js dependencies
61+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
62+
63+
- name: Build with Hugo
64+
env:
65+
# For maximum backward compatibility with Hugo modules
66+
HUGO_ENVIRONMENT: production
67+
HUGO_ENV: production
68+
run: |
69+
hugo \
70+
--minify \
71+
--baseURL "${{ steps.pages.outputs.base_url }}/"
72+
73+
- name: Upload artifact
74+
uses: actions/upload-pages-artifact@v3
75+
with:
76+
path: ./public
77+
78+
deploy:
79+
environment:
80+
name: gh-pages
81+
url: ${{ steps.deployment.outputs.page_url }}
82+
runs-on: ubuntu-24.04
83+
needs: build
84+
steps:
85+
- name: Deploy to GitHub Pages
86+
id: deployment
87+
uses: actions/deploy-pages@v4

.github/workflows/release-theme.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Release void theme
2+
run-name: 📦 Release void theme ${{ github.ref_name }}
3+
4+
on:
5+
push:
6+
tags:
7+
- 'void/[0-9].[0-9].[0-9]'
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
id: checkout
19+
20+
- name: Pin version
21+
id: version
22+
run: |
23+
RELEASE_VERSION=${GITHUB_REF#refs/tags/void/}
24+
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
25+
26+
- name: Get branch name
27+
id: branch-name
28+
uses: tj-actions/branch-names@v8
29+
30+
- name: Compress theme files
31+
id: compress
32+
run: |
33+
cd themes && \
34+
zip -r "../void-${{ env.RELEASE_VERSION }}.zip" void
35+
36+
- name: Release
37+
uses: softprops/[email protected]
38+
id: release
39+
with:
40+
files: void-${{ env.RELEASE_VERSION }}.zip
41+
tag_name: ${{ github.ref }}
42+
name: Void theme ${{ env.RELEASE_VERSION }}
43+
body: |
44+
## Summary
45+
46+
Void theme ${{ env.RELEASE_VERSION }} has been released from branch ${{ steps.branch-name.outputs.base_ref_branch }}.
47+
Void is a minimal, clean, and responsive theme for [Hugo](https://gohugo.io/). Please refer to [docs](https://github.com/younsl/blog/tree/main/theme/void) for installation and usage.
48+
49+
## Directory Structure
50+
51+
`void-${{ env.RELEASE_VERSION }}.zip` file is a zip archive of the following files:
52+
53+
```bash
54+
void-${{ env.RELEASE_VERSION }}/
55+
└── void/
56+
├── assets/ # Assets for void theme (e.g. css, js, and etc.)
57+
├── layouts/ # Layouts for void theme (e.g. _default, partials, shortcodes, and etc.)
58+
└── docs/ # Documentation for void theme
59+
```
60+
draft: false
61+
prerelease: false
62+
token: ${{ secrets.GITHUB_TOKEN }}
63+
generate_release_notes: true

.gitignore

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
#----------------------------------
2+
# Keypair and SSH related files
3+
#----------------------------------
4+
# Ignore SSH keypair files
5+
.ssh/id_rsa
6+
.ssh/id_rsa.pub
7+
*.pub
8+
*.pem
9+
*.rsa
10+
*.dsa
11+
*.ppk
12+
13+
# Ignore SSH configuration and known_hosts
14+
.ssh/config
15+
.ssh/known_hosts
16+
17+
#----------------------------------
18+
# Token
19+
#----------------------------------
20+
# Ignore authentication tokens and secrets
21+
*.token
22+
*.secret
23+
24+
#----------------------------------
25+
# DS_Store
26+
#----------------------------------
27+
.DS_Store
28+
29+
#----------------------------------
30+
# vi/vim
31+
#----------------------------------
32+
*.swp
33+
*.swo
34+
35+
#----------------------------------
36+
# Hugo
37+
#----------------------------------
38+
.hugo_build.lock
39+
public/
40+
41+
resources/
42+
# resources caches some files to speed up generation.
43+
# Can be also used by template authors to distribute built SASS files,
44+
# so you don’t have to have the preprocessor installed.
45+
# Note: resources directory is not created by default.
46+
# Docs: https://gohugo.io/getting-started/directory-structure/
47+
48+
#----------------------------------
49+
# AWS CLI
50+
#----------------------------------
51+
# Ignore AWS config and credential files
52+
.aws/*
53+
*.aws
54+
55+
# Ignore AWS credentials file
56+
credentials
57+
58+
# Ignore AWS config file
59+
config
60+
61+
#----------------------------------
62+
# Git
63+
#----------------------------------
64+
# Ignore git configuration files
65+
.gitconfig
66+
.gitconfig-*
67+
68+
config-*
69+
!git/config
70+
!git/config-sample
71+
72+
#----------------------------------
73+
# Terraform
74+
#----------------------------------
75+
# Local .terraform directories
76+
**/.terraform/*
77+
78+
# .tfstate files
79+
*.tfstate
80+
*.tfstate.*
81+
82+
# Crash log files
83+
crash.log
84+
crash.*.log
85+
86+
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
87+
# password, private keys, and other secrets. These should not be part of version
88+
# control as they are data points which are potentially sensitive and subject
89+
# to change depending on the environment.
90+
*.tfvars
91+
*.tfvars.json
92+
93+
# Ignore override files as they are usually used to override resources locally and so
94+
# are not checked in
95+
override.tf
96+
override.tf.json
97+
*_override.tf
98+
*_override.tf.json
99+
100+
# Include override files you do wish to add to version control using negated pattern
101+
# !example_override.tf
102+
103+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
104+
# example: *tfplan*
105+
106+
# Ignore CLI configuration files
107+
.terraformrc
108+
terraform.rc
109+
110+
#----------------------------------
111+
# Temporary ad-hoc script
112+
#----------------------------------
113+
commit-history-cleaner.sh

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Younsung Lee
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# blog
2+
3+
## Summary
4+
5+
[![Blog logo](./static/favicon-32x32.png)](https://younsl.xyz)
6+
7+
[younsl.xyz](https://younsl.xyz) is my personal tech blog and [helm chart repository](https://younsl.xyz/charts) built with [hugo][hugo].
8+
9+
This blog is styled with [void][void-docs] theme created by myself. If you want to know more about the theme, Feel free to read the [void][void-docs] docs.
10+
11+
[hugo]: https://gohugo.io/
12+
[void-docs]: ./themes/void/docs/README.md

0 commit comments

Comments
 (0)