Skip to content

Commit f0fd729

Browse files
committed
Create GitHub Workflow to automatically deploy code
Context: Everytime new code is merged into master, I need to manually deploy things using npm run deploy. In order to automate things, let's introduce a GitHub Workflow that will accomplish this for us! Solution: Introduce a GitHub Workflow that will build and deploy our static site. Fixes issue-183
1 parent 6593519 commit f0fd729

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Deploy to GitHub pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Generate and deploy static files
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: '14'
17+
- run: npm ci
18+
- run: npm run deploy

0 commit comments

Comments
 (0)