Add Netlify config and Gitea Actions CI/CD workflow

Amp-Thread-ID: https://ampcode.com/threads/T-019c7839-0936-729b-aa87-92b35d3d68fe
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Neeldhara Misra 2026-02-20 05:01:40 +05:30
parent 93917727fb
commit 84749c8d9b
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,28 @@
name: Deploy to Netlify
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3
with:
publish-dir: ./dist
production-deploy: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

6
netlify.toml Normal file
View file

@ -0,0 +1,6 @@
[build]
command = "npm run build"
publish = "dist"
[build.environment]
NODE_VERSION = "20"