Skip to content

Commit 7f8177c

Browse files
author
Roshan Jossy
committed
add workflow for deployment
1 parent 37fffb6 commit 7f8177c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Deploy to GitHub pages
2+
on:
3+
push:
4+
branches:
5+
- source
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
12+
with:
13+
persist-credentials: false
14+
15+
- 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.
16+
run: |
17+
yarn
18+
yarn build
19+
20+
- name: Deploy 🚀
21+
uses: JamesIves/[email protected]
22+
with:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
BRANCH: master
25+
FOLDER: build

0 commit comments

Comments
 (0)