Skip to content

Commit

Permalink
chore: add gh-page
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongxuYang committed Aug 13, 2024
1 parent 53edf33 commit 3344e0d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '21.x'

- uses: pnpm/action-setup@v4
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm -F vite build

- name: Deploy - zhongxuyang.github.io
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: playground/vite-webapp/dist
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@

</div>

## Demo
![](https://raw.githubusercontent.com/ZhongxuYang/images/dev/common/version-shot.png)
## Example

[![](https://raw.githubusercontent.com/ZhongxuYang/images/dev/common/version-shot.png)](https://zhongxuyang.github.io/vite-plugin-version-mark)

## Install
```sh
Expand Down
3 changes: 2 additions & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
</div>

## 使用样例
![](https://raw.githubusercontent.com/ZhongxuYang/images/dev/common/version-shot.png)

[![](https://raw.githubusercontent.com/ZhongxuYang/images/dev/common/version-shot.png)](https://zhongxuyang.github.io/vite-plugin-version-mark)

## 安装
```sh
Expand Down

0 comments on commit 3344e0d

Please sign in to comment.