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:
parent
cc2a9a0692
commit
4d52e99f83
|
@ -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"
|
|
@ -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"
|
|
@ -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()
|
||||
});
|
|
@ -0,0 +1,3 @@
|
|||
[build]
|
||||
command = "npm run build"
|
||||
publish = "dist"
|
File diff suppressed because it is too large
Load Diff
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue