Skip to content

Commit

Permalink
Deploy to GitHub Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Realsee CI Bot committed Aug 31, 2024
0 parents commit b3a510f
Show file tree
Hide file tree
Showing 278 changed files with 191,411 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy github pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Sleep
run: sleep 30s

- name: Build
run: |
npm install
npm run build
mkdir -p _site
cp -r open-works _site/
cp -r dist/* _site/
touch _site/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
strict-peer-dependencies=false
legacy-peer-deps=true
18 changes: 18 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
semi: false, // 句末不使用分号
trailingComma: 'all', // 多行时尽可能打印尾随逗号
singleQuote: true, // 单引号
printWidth: 140, // 单行最大长度
tabWidth: 2,
arrowParens: 'always', // 单参数箭头函数参数周围使用圆括号-eg: (x) => x
bracketSpacing: true, // 在对象前后添加空格-eg: { foo: bar }
embeddedLanguageFormatting: 'auto', // 对引用代码进行格式化
endOfLine: 'lf', // 结束行形式
htmlWhitespaceSensitivity: 'css', // 对 HTML 标签空白敏感
insertPragma: false, // 在已被 prettier 格式化的文件顶部加上标注
jsxBracketSameLine: false, // 多属性html标签的 '>' 不折行放置
jsxSingleQuote: false, // jsx中使用单引号
proseWrap: 'preserve',
quoteProps: 'as-needed', // 仅在必需时为对象的 key 添加引号
useTabs: false, // 使用空格代替tab缩进
}
Loading

0 comments on commit b3a510f

Please sign in to comment.