Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit 6896a44

Browse files
authored
Configure GitHub Pages CD (#24)
1 parent 5fca383 commit 6896a44

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: github pages
2+
on:
3+
push:
4+
branches: [master]
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
- name: Read .nvmrc
12+
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
13+
id: nvm
14+
- name: Use Node.js ${{ steps.nvm.outputs.NVMRC }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
18+
- name: Install dependencies
19+
run: npm ci
20+
- name: Build application
21+
run: npx gulp all
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./src

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ gulp.task('serve', 'Run a local webserver', function() {
118118
.pipe(gulpWebserver({
119119
fallback: 'index.html',
120120
livereload: false,
121-
open: true
121+
open: true,
122+
path: '/angular-multiselect/'
122123
}));
123124
});
124125

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<base href="/"></base>
4+
<base href="/angular-multiselect/">
55
<meta charset="utf-8">
66
<title>AngularJS Multiselect</title>
77
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />

0 commit comments

Comments
 (0)