setup netlify deploys (#1)

Reviewed-on: #1
Co-authored-by: chris b <blue.iron1752@chrisb.xyz>
Co-committed-by: chris b <blue.iron1752@chrisb.xyz>
This commit is contained in:
chris b 2023-09-06 22:07:36 -04:00 committed by chrisw-b
parent cc2a9a0692
commit 4d52e99f83
6 changed files with 16369 additions and 6 deletions

View File

@ -0,0 +1,14 @@
name: Publish to Netlify
on:
pull_request:
tags:
- v*
jobs:
publish-to-netlify:
uses: "chrisw-b/ci-cd/.gitea/workflows/deploy-to-netlify.yml@v3"
secrets: inherit
with:
PR_NUMBER: ${{ gitea.event.number }}
NETLIFY_CONTEXT: "production"

View File

@ -0,0 +1,13 @@
name: Publish to Netlify
on:
pull_request:
branches: [main]
jobs:
publish-to-netlify:
uses: "chrisw-b/ci-cd/.gitea/workflows/deploy-to-netlify.yml@v3"
secrets: inherit
with:
PR_NUMBER: ${{ gitea.event.number }}
NETLIFY_CONTEXT: "deploy-preview"

View File

@ -1,4 +1,9 @@
import { defineConfig } from 'astro/config';
import netlify from "@astrojs/netlify/functions";
// https://astro.build/config
export default defineConfig({});
export default defineConfig({
output: "server",
adapter: netlify()
});

3
netlify.toml Normal file
View File

@ -0,0 +1,3 @@
[build]
command = "npm run build"
publish = "dist"

16334
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,9 +10,11 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/netlify": "^3.0.1",
"astro": "^3.0.10"
},
"devDependencies": {
"eslint": "^8.48.0"
"eslint": "^8.48.0",
"netlify-cli": "^16.3.1"
}
}