Skip to content

Commit

Permalink
Merge branch 'main' into blog
Browse files Browse the repository at this point in the history
  • Loading branch information
lotusk08 committed May 18, 2024
1 parent 54149d6 commit 6b3597b
Show file tree
Hide file tree
Showing 28 changed files with 304 additions and 209 deletions.
Binary file modified .DS_Store
Binary file not shown.
40 changes: 40 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CD

on:
push:
branches:
- blog
tags-ignore:
- "**"

jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true

- uses: actions/setup-node@v4
with:
node-version: latest

- run: npm install
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}

publish:
needs: release
uses: ./.github/workflows/publish.yml
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
BUILDER: ${{ secrets.BUILDER }}
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: "CI"
on:
push:
branches:
- "main"
- "master"
- "hotfix/**"
paths-ignore:
- ".github/**"
- "!.github/workflows/ci.yml"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

deploy:
environment:
name: Preview version
name: Preview
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- docs
workflow_call:
secrets:
GH_PAT:
required: true
BUILDER:
required: true

jobs:
launch:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/style-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Style Lint"

on:
push:
branches: ["master", "hotfix/**"]
paths: ["_sass/**/*.scss"]
pull_request:
paths: ["_sass/**/*.scss"]

jobs:
stylelint:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- run: npm i
- run: npm test
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "assets/lib"]
path = assets/lib
url = https://github.com/lotusk08/theme-static-assets.git
url = https://github.com/lotusk08/web-static-assets.git
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ timezone: Asia/Saigon

title: Steve Hoang # the main title

tagline: A blog from my life, my story, my journey. # it will display as the sub-title
tagline: A blog from my life, my story, and my journey. # it will display as the sub-title

description: >- # used by seo meta and the atom feed
Life's too short to sweat the small stuff. Enjoy yourself, fall in love, and embrace every moment without regrets. Don't let anyone dim your shine. Live the life you've always dreamed of!
Expand Down Expand Up @@ -131,7 +131,7 @@ comments:
lang: # optional, default to the value of `site.lang`
reactions_enabled: # optional, default to the value of `1`

# Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets
# Self-hosted static assets, optional › https://github.com/lotusk08/web-static-assets
assets:
self_host:
enabled: # boolean, keep empty means false
Expand Down
4 changes: 4 additions & 0 deletions _data/contact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@
# - type: stack-overflow
# icon: 'fab fa-stack-overflow'
# url: '' # Fill with your stackoverflow homepage
#
# - type: bluesky
# icon: 'fa-brands fa-bluesky'
# url: '' # Fill with your Bluesky profile link
16 changes: 8 additions & 8 deletions _data/origin/cors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ webfonts: https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&family=Ro
# Libraries

toc:
css: https://cdn.jsdelivr.net/npm/tocbot@4.25.0/dist/tocbot.min.css
js: https://cdn.jsdelivr.net/npm/tocbot@4.25.0/dist/tocbot.min.js
css: https://cdn.jsdelivr.net/npm/tocbot@4.27.20/dist/tocbot.min.css
js: https://cdn.jsdelivr.net/npm/tocbot@4.27.20/dist/tocbot.min.js

fontawesome:
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.min.css
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css

search:
js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js

mermaid:
js: https://cdn.jsdelivr.net/npm/mermaid@10.8.0/dist/mermaid.min.js
js: https://cdn.jsdelivr.net/npm/mermaid@10.9.0/dist/mermaid.min.js

dayjs:
js:
common: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/dayjs.min.js
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/locale/:LOCALE.min.js
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/plugin/relativeTime.min.js
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.10/plugin/localizedFormat.min.js
common: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/dayjs.min.js
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/locale/:LOCALE.min.js
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/plugin/relativeTime.min.js
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.11/plugin/localizedFormat.min.js

glightbox:
css: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/css/glightbox.min.css
Expand Down
4 changes: 4 additions & 0 deletions _data/share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ platforms:
# link: "https://fosstodon.org/"
# - label: photog.social
# link: "https://photog.social/"
#
# - type: Bluesky
# icon: "fa-brands fa-bluesky"
# link: "https://bsky.app/intent/compose?text=TITLE%20URL"
Loading

0 comments on commit 6b3597b

Please sign in to comment.