Skip to content

Commit bc20b6d

Browse files
committed
CI/CD Github Action
1 parent a326f7d commit bc20b6d

File tree

4 files changed

+262
-2
lines changed

4 files changed

+262
-2
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install and Build
15+
run: |
16+
npm install
17+
npm run build
18+
19+
- name: Deploy to GitHub Pages
20+
uses: JamesIves/[email protected]
21+
with:
22+
branch: gh-pages
23+
folder: public

package-lock.json

+236
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@rollup/plugin-typescript": "^8.0.0",
1616
"@tsconfig/svelte": "^2.0.0",
1717
"@types/uuid": "^8.3.4",
18+
"gh-pages": "^3.2.3",
1819
"rollup": "^2.3.4",
1920
"rollup-plugin-css-only": "^3.1.0",
2021
"rollup-plugin-livereload": "^2.0.0",

scripts/gh-pages.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { publish } from "gh-pages";
1+
var ghpages = require("gh-pages");
22

3-
publish(
3+
ghpages.publish(
44
"public",
55
{
66
branch: "gh-pages",

0 commit comments

Comments
 (0)