Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .gemini/config.yaml

This file was deleted.

49 changes: 25 additions & 24 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Pages
name: Deploy React Site

on:
push:
Expand All @@ -8,30 +8,31 @@ on:
branches:
- main

permissions:
contents: write

jobs:
build:
build-and-deploy:
runs-on: ubuntu-latest
Comment on lines +15 to 16

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛑 Logic Error: The workflow deploys to gh-pages branch on every pull request, which will overwrite production with unreviewed code. Deployment should only occur on push to main branch after PR approval.

Suggested change
build-and-deploy:
runs-on: ubuntu-latest
build-and-deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'


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

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: Install dependencies
run: |
gem install bundler
bundle install

- name: Build the site
run: bundle exec jekyll build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.MYBLOGACTIONSECRET }}
publish_dir: ./_site
- name: Checkout repository
uses: actions/checkout@v6

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Build the site
run: bun run build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
github_token: ${{ secrets.MYBLOGACTIONSECRET }}
folder: dist
branch: gh-pages
30 changes: 23 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
.vscode/*
!.vscode/tasks.json
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata/
vendor/
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
24 changes: 19 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,36 @@
"version": "2.0.0",
"tasks": [
{
"label": "local install",
"label": "install",
"type": "shell",
"command": "sh scripts/install.sh",
"command": "bun install",
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "local test",
"label": "build",
"type": "shell",
"command": "sh scripts/test.sh",
"command": "bun run build",
"group": {
"kind": "build",
"isDefault": true
},
},
{
"label": "dev",
"type": "shell",
"command": "bun run dev",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "new"
}
},
]
}
}
6 changes: 0 additions & 6 deletions 404.html

This file was deleted.

14 changes: 0 additions & 14 deletions Gemfile

This file was deleted.

201 changes: 0 additions & 201 deletions Gemfile.lock

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
My Technical Writing Licensed under **CC BY-NC-SA 4.0**, see [LICENSE](LICENSE) file.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

It's a good practice to end files with a newline character. Many tools and conventions expect this, and it can prevent issues with file concatenation or processing.

Suggested change
My Technical Writing Licensed under **CC BY-NC-SA 4.0**, see [LICENSE](LICENSE) file.
My Technical Writing Licensed under **CC BY-NC-SA 4.0**, see [LICENSE](LICENSE) file.

Loading
Loading