mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-06-25 16:23:24 +02:00
add deployment action
This commit is contained in:
parent
a75ec9a3b9
commit
c4e93f4be7
39
.github/workflows/blog-deployment.yml
vendored
Normal file
39
.github/workflows/blog-deployment.yml
vendored
Normal 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
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user