Skip to content

Commit 71f4e27

Browse files
committed
Add GitHub Action for automatic GitHub Pages deployment upon master commit
1 parent 0747f8d commit 71f4e27

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and Deploy
2+
on: [push]
3+
jobs:
4+
build-and-deploy:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout 🛎️
8+
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
9+
with:
10+
persist-credentials: false
11+
12+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
13+
run: |
14+
npm install
15+
npm run build
16+
17+
- name: Deploy 🚀
18+
uses: JamesIves/github-pages-deploy-action@releases/v3
19+
with:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
BRANCH: gh-pages # The branch the action should deploy to.
22+
FOLDER: dist/deploy # The folder the action should deploy.

0 commit comments

Comments
 (0)