-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into OldBlog-2
Signed-off-by: 念真 <[email protected]>
- Loading branch information
Showing
369 changed files
with
5,053 additions
and
17,050 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "Jekyll", | ||
"image": "mcr.microsoft.com/devcontainers/jekyll:2-bullseye", | ||
"onCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}", | ||
"postCreateCommand": "bash .devcontainer/post-create.sh", | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"terminal.integrated.defaultProfile.linux": "zsh" | ||
}, | ||
"extensions": [ | ||
// Liquid tags auto-complete | ||
"killalau.vscode-liquid-snippets", | ||
// Liquid syntax highlighting and formatting | ||
"Shopify.theme-check-vscode", | ||
// Shell | ||
"timonwong.shellcheck", | ||
"mkhl.shfmt", | ||
// Common formatter | ||
"EditorConfig.EditorConfig", | ||
"esbenp.prettier-vscode", | ||
"stylelint.vscode-stylelint", | ||
"yzhang.markdown-all-in-one", | ||
// Git | ||
"mhutchie.git-graph" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -f package.json ]; then | ||
bash -i -c "nvm install --lts && nvm install-latest-npm" | ||
npm i | ||
npm run build | ||
fi | ||
|
||
# Install dependencies for shfmt extension | ||
curl -sS https://webi.sh/shfmt | sh &>/dev/null | ||
|
||
# Add OMZ plugins | ||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting | ||
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions | ||
sed -i -E "s/^(plugins=\()(git)(\))/\1\2 zsh-syntax-highlighting zsh-autosuggestions\3/" ~/.zshrc | ||
|
||
# Avoid git log use less | ||
echo -e "\nunset LESS" >>~/.zshrc |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
paths-ignore: | ||
- "assets/js" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,40 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
branches: | ||
- docs | ||
- production | ||
tags-ignore: | ||
- "**" | ||
|
||
jobs: | ||
launch: | ||
release: | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
curl -X POST -H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \ | ||
https://api.github.com/repos/${{ secrets.BUILDER }}/dispatches \ | ||
-d '{"event_type":"deploy", "client_payload":{"branch": "${{ github.ref_name }}"}}' | ||
- 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.