Skip to content

Commit

Permalink
Migrate to Jekyll
Browse files Browse the repository at this point in the history
Migrate from custom react app to Jekyll for site development.
Migrate Medium blog to local site.
  • Loading branch information
n0mn0m committed Oct 22, 2023
1 parent b74a0e6 commit 3b69643
Show file tree
Hide file tree
Showing 251 changed files with 4,172 additions and 19,853 deletions.
110 changes: 0 additions & 110 deletions .eslintrc.js

This file was deleted.

52 changes: 25 additions & 27 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
name: Deploy

name: Deploy Jekyll site
on:
pull_request:
branches:
- main
types: [closed]

push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build
uses: actions/jekyll-build-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
deploy:
if: ${{ github.event.pull_request.merged }}
needs: build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build and test
run: |
npm ci
npm run build
- name: deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action
37 changes: 15 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
name: Build and Test

name: Build Jekyll site
on:
pull_request:
branches: [main]
types: [assigned, opened, synchronize, reopened]

push:
branches: ["main"]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build and test
run: |
npm ci
npm run lint
npm run build
npm test
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build
uses: actions/jekyll-build-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
Loading

0 comments on commit 3b69643

Please sign in to comment.