Skip to content

Commit

Permalink
gh-pages: Add live 3d model of board
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis960 committed Sep 24, 2023
1 parent 681d978 commit c45ad7b
Show file tree
Hide file tree
Showing 16 changed files with 1,995 additions and 134 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.github-pages.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build ESPlant-Pages
on:
push:
branches:
- main
paths:
- "ESPlant-Pages/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
working-directory: ./ESPlant-Pages
run: npm install
- name: Build pages
working-directory: ./ESPlant-Pages
run: npm run build
- name: Deploy to GitHub Pages
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "github-pages: [bot] Deploy ESPlant-Pages"
commit_options: "--no-verify --signoff"
file_pattern: docs
branch: gh-pages
create_branch: true
push_options: "--force-with-lease"
24 changes: 24 additions & 0 deletions ESPlant-Pages/.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?
13 changes: 13 additions & 0 deletions ESPlant-Pages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ESPlant-Pages</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit c45ad7b

Please sign in to comment.