add netlify remove vercel
Dieser Commit ist enthalten in:
Ursprung
5108204f85
Commit
75b23df36b
4 geänderte Dateien mit 24 neuen und 47 gelöschten Zeilen
43
.github/workflows/vercel-deploy.yml
gevendort
43
.github/workflows/vercel-deploy.yml
gevendort
|
@ -1,43 +0,0 @@
|
|||
name: Build and Deploy with Vercel
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Change if required
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
- name: Checkout repository (including submodules)
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Set up Zola
|
||||
run: |
|
||||
ZOLA_VERSION="0.18.0"
|
||||
curl -L -o zola.tar.gz "https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
|
||||
tar -xzf zola.tar.gz
|
||||
chmod +x zola
|
||||
mv zola /usr/local/bin/zola
|
||||
rm zola.tar.gz
|
||||
|
||||
- name: Build Zola site
|
||||
run: |
|
||||
# Build the site (modify arguments if needed)
|
||||
zola build
|
||||
|
||||
- name: Deploy to Vercel
|
||||
uses: https://github.com/amondnet/vercel-action@v20
|
||||
with:
|
||||
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
|
||||
vercel-args: "--prod" # Deploy to production
|
||||
working-directory: "." # Adjust if your site is in a subfolder
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} # Required for Vercel action
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} # Required for Vercel action
|
3
.gitignore
gevendort
3
.gitignore
gevendort
|
@ -1 +1,4 @@
|
|||
.vercel
|
||||
|
||||
# Local Netlify folder
|
||||
.netlify
|
||||
|
|
21
netlify.toml
Normale Datei
21
netlify.toml
Normale Datei
|
@ -0,0 +1,21 @@
|
|||
# example netlify.toml
|
||||
[build]
|
||||
command = "zola build"
|
||||
functions = "netlify/functions"
|
||||
publish = "public"
|
||||
|
||||
## Uncomment to use this redirect for Single Page Applications like create-react-app.
|
||||
## Not needed for static site generators.
|
||||
#[[redirects]]
|
||||
# from = "/*"
|
||||
# to = "/index.html"
|
||||
# status = 200
|
||||
|
||||
## (optional) Settings for Netlify Dev
|
||||
## https://github.com/netlify/cli/blob/main/docs/netlify-dev.md#project-detection
|
||||
#[dev]
|
||||
# command = "yarn start" # Command to start your dev server
|
||||
# port = 3000 # Port that the dev server will be listening on
|
||||
# publish = "dist" # Folder with the static content for _redirect file
|
||||
|
||||
## more info on configuring this file: https://ntl.fyi/file-based-build-config
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"trailingSlash": true,
|
||||
"cleanUrls": true
|
||||
}
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren