aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-11-04 17:37:25 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-11-04 17:37:25 -0500
commit29fc563863f561cdc707485289c5580b4397a580 (patch)
treea43784660fdc29e5b95df3e358cf722eec2b092b
parent9bce000c7b5799837fac15bd6339dfd27401b630 (diff)
Add continuous deployment
-rw-r--r--.github/workflows/deploy.yml27
-rw-r--r--public/index.html10
2 files changed, 32 insertions, 5 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..b79fbb6
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,27 @@
+name: Deploy to GitHub Pages
+
+on:
+ push:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup Node
+ uses: actions/setup-node@v2
+ with:
+ node-version: '14'
+
+ - name: Install and Build
+ run: |
+ npm ci
+ npm run build
+
+ - name: Deploy to GitHub Pages
+ uses: JamesIves/github-pages-deploy-action@4.1.5
+ with:
+ branch: gh-pages
+ folder: public \ No newline at end of file
diff --git a/public/index.html b/public/index.html
index db97b4a..3e7c201 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,11 +4,11 @@
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
- <title>Svelte app</title>
+ <title>PT Scheduler</title>
- <link rel='icon' type='image/png' href='/favicon.png'>
- <link rel='stylesheet' href='/global.css'>
- <link rel='stylesheet' href='/build/bundle.css'>
+ <link rel='icon' type='image/png' href='./favicon.png'>
+ <link rel='stylesheet' href='./global.css'>
+ <link rel='stylesheet' href='./build/bundle.css'>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/svelte-material-ui@4.2.0/bare.min.css"
@@ -22,7 +22,7 @@
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
- <script defer src='/build/bundle.js'></script>
+ <script defer src='./build/bundle.js'></script>
</head>
<body>