Skip to content

Commit 318a94b

Browse files
author
Donovan Hutchinson
committed
Adding action scripts
1 parent 45004fa commit 318a94b

File tree

3 files changed

+39
-15
lines changed

3 files changed

+39
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Master branch deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build_deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@master
15+
- run: npm install
16+
- run: npm run build
17+
- name: Deploy
18+
uses: peaceiris/actions-gh-pages@v3
19+
with:
20+
PUBLISH_DIR: _site
21+
PUBLISH_BRANCH: gh-pages
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy_manual.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Manual deploy
2+
on:
3+
workflow_dispatch
4+
5+
jobs:
6+
build_deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- run: npm install
11+
- run: npm run build
12+
- name: Deploy
13+
uses: peaceiris/actions-gh-pages@v3
14+
with:
15+
PUBLISH_DIR: _site
16+
PUBLISH_BRANCH: gh-pages
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)