Skip to content

Commit 87fac95

Browse files
authored
Merge pull request #11 from timonback/chore/github-pages-deploy-action
Deploy to gh pages
2 parents 0d5b9d5 + 039343c commit 87fac95

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
name: Deploy to GitHub Pages
1+
name: Build
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
- push
5+
- workflow_dispatch
6+
7+
permissions:
8+
contents: write
79

810
jobs:
911
deploy:
10-
name: Deploy to GitHub Pages
12+
name: Build
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@v2
1416
- uses: actions/setup-node@v3
1517
with:
16-
node-version: 14.x
18+
node-version: 16.x
1719

1820
- name: Install dependencies
1921
run: npm install
@@ -22,6 +24,7 @@ jobs:
2224
run: npm run build
2325

2426
- name: Deploy to GitHub Pages
27+
if: github.ref == 'refs/heads/master'
2528
uses: peaceiris/actions-gh-pages@v3
2629
with:
2730
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)