Skip to content

Commit

Permalink
ci: build (#7)
Browse files Browse the repository at this point in the history
* ci: build

* fix: playwright

* fix: playwright
  • Loading branch information
D-Sketon authored Aug 4, 2024
1 parent 6cf6961 commit 37fd61d
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ["18.x", "20.x", "22.x"]
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Install playwright
run: npx playwright install

- name: Build
run: npm run build
11 changes: 11 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@ Based on [hexo-theme-reimu](https://github.com/D-Sketon/hexo-theme-reimu) migrat
Any static assets (such as images) can be placed in the `public/` directory.
All blog posts are stored in the directory `src/content/blog` and `about` page are stored in the directory `src/pages`.

## Usage
```bash
git clone https://github.com/D-Sketon/astro-theme-reimu.git
cd ./astro-theme-reimu

pnpm i
pnpm npx playwright install

pnpm run dev
```

## Feature
- ✅ SEO-friendly
- ✅ Night Mode
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@
任何静态资产(如图像)都可以放置在 `public/` 目录中。
所有博客文章都存储在目录 `src/content/blog` 中,关于页面存储在目录 `src/pages` 中。

## 使用
```bash
git clone https://github.com/D-Sketon/astro-theme-reimu.git
cd ./astro-theme-reimu

pnpm i
pnpm npx playwright install

pnpm run dev
```

## 特性
- ✅SEO 友好
- ✅夜间模式
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"katex": "^0.16.11",
"lozad": "^1.16.0",
"mermaid": "^10.9.1",
"playwright": "^1.45.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rehype-katex": "^7.0.0",
Expand Down
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37fd61d

Please sign in to comment.