Skip to content

Commit

Permalink
chore: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Dec 15, 2023
1 parent aa7f0fe commit 78b984b
Show file tree
Hide file tree
Showing 7 changed files with 372 additions and 411 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- main

jobs:
deploy-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# Python 3.11 和 node-gyp 有兼容问题, 导致无法安装依赖
# https://github.com/slint-ui/slint/commit/a9c48e33502fdebc36c5aa2f4f516c2218424679#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- uses: pnpm/action-setup@v2
with:
version: 7

- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm deploy

- run: |
cd examples/dist
git init
git config --local user.name xiaoiver
git config --local user.email pyqiverson@gmail.com
git add .
git commit -m "update by release action"
- uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.PERSONAL_ACCESS_TOKEN}}
directory: examples/dist
branch: gh-pages
force: true
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,29 @@
"homepage": "https://github.com/xiaoiver/renderer#readme",
"dependencies": {
"@antv/g-device-api": "^1.4.8",
"@lastolivegames/becsy": "^0.15.8",
"@lastolivegames/becsy": "^0.15.9",
"gl-matrix": "^3.4.3",
"hammerjs": "^2.0.8",
"lodash-es": "^4.17.21",
"tslib": "^2.6.2",
"hammerjs": "^2.0.8"
"tslib": "^2.6.2"
},
"devDependencies": {
"@changesets/cli": "^2.27.0",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^8.3.6",
"@commitlint/config-angular": "^9.1.2",
"@playwright/test": "^1.40.0",
"@playwright/test": "^1.40.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@types/hammerjs": "^2.0.36",
"@types/hammerjs": "^2.0.45",
"@types/jest": "^26.0.24",
"@types/lodash-es": "^4.17.12",
"@types/node": "^16.18.65",
"@types/node": "^16.18.68",
"@types/offscreencanvas": "^2019.7.3",
"@typescript-eslint/eslint-plugin": "^6.13.0",
"@typescript-eslint/parser": "^6.13.0",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"case-police": "^0.5.14",
"eslint": "^7.32.0",
"eslint-plugin-jest": "24.3.6",
Expand All @@ -81,11 +81,11 @@
"rimraf": "^4.4.1",
"rollup": "^3.29.4",
"rollup-plugin-polyfill-node": "^0.12.0",
"rollup-plugin-visualizer": "^5.9.3",
"rollup-plugin-visualizer": "^5.11.0",
"stats.js": "^0.17.0",
"ts-jest": "^29.1.1",
"typescript": "^5.3.2",
"vite": "^4.5.0"
"typescript": "^5.3.3",
"vite": "^4.5.1"
},
"lint-staged": {
"*.{md,json}": [
Expand Down
Loading

0 comments on commit 78b984b

Please sign in to comment.