add deployment action

This commit is contained in:
vincanger 2024-12-05 12:28:39 +01:00
parent a75ec9a3b9
commit c4e93f4be7
2 changed files with 41 additions and 1 deletions

39
.github/workflows/blog-deployment.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Deploy Blog to Netlify
on:
push:
branches:
- main
paths:
- 'opensaas-sh/blog/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build site
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2
with:
publish-dir: './opensaas-sh/blog/dist'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1

View File

@ -17,7 +17,8 @@ This template is:
1. fully open-source
2. completely free to use and distribute
3. comes with a ton of features out of the box!
3. comes with a ton of features out of the box
4. community-driven and constantly improving
Check it out in action here: [OpenSaaS.sh](https://opensaas.sh)
Check out the Code: [Open SaaS GitHub Repo](https://github.com/wasp-lang/open-saas)