Skip to content

Commit c4e93f4

Browse files
committed
add deployment action
1 parent a75ec9a commit c4e93f4

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy Blog to Netlify
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'opensaas-sh/blog/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '18'
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Build site
27+
run: npm run build
28+
29+
- name: Deploy to Netlify
30+
uses: nwtgck/actions-netlify@v2
31+
with:
32+
publish-dir: './opensaas-sh/blog/dist'
33+
production-branch: main
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
deploy-message: "Deploy from GitHub Actions"
36+
env:
37+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
38+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
39+
timeout-minutes: 1

opensaas-sh/blog/src/content/docs/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ This template is:
1717

1818
1. fully open-source
1919
2. completely free to use and distribute
20-
3. comes with a ton of features out of the box!
20+
3. comes with a ton of features out of the box
21+
4. community-driven and constantly improving
2122

2223
Check it out in action here: [OpenSaaS.sh](https://opensaas.sh)
2324
Check out the Code: [Open SaaS GitHub Repo](https://github.com/wasp-lang/open-saas)

0 commit comments

Comments
 (0)