Skip to content

Commit 855410b

Browse files
committed
feat: Adding deploy github action for Netlify.
1 parent ace4541 commit 855410b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy to Netlify
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
# Checkout the code
14+
- uses: actions/checkout@v3
15+
16+
# Install proper version of node
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: '16.x'
20+
21+
# Install v3.7.1 of gatsby-cli
22+
- run: npm install -g [email protected]
23+
24+
- run: npm -v
25+
- run: gatsby --version

0 commit comments

Comments
 (0)