Skip to content

Commit

Permalink
Build editors
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Oct 25, 2023
1 parent ca18022 commit 14a192f
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/editors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Dotnet SDK

on:
push:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: Setup Node.js environment
uses: actions/[email protected]

- name: Move Files
run: |
md out
mv editors/*.* out/
- name: Build Markdown
run: |
cd editors/markdown
npm i
npm run build-editor
mv dist/index.html dist/old-markdown.html
mv dist/* ../../out/
- name: Build Rich Text
run: |
cd editors/richtext
npm i
npm run build-editor
mv dist/index.html dist/old-richtext.html
mv dist/* ../../out/
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
clean: true
1 change: 1 addition & 0 deletions editors/markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build-editors": "tsc && vite build --base=/editors/",
"preview": "vite preview",
"server-local": "docker run -p 3100:3100 -v dist/index.html:/usr/share/caddy/index.html caddy caddy --root /var/www/html --listen :3100 --browse"
},
Expand Down
1 change: 1 addition & 0 deletions editors/richtext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build-editor": "tsc && vite build --base=/editors/",
"preview": "vite preview"
},
"devDependencies": {
Expand Down

0 comments on commit 14a192f

Please sign in to comment.