home/.github/workflows/vercel-deploy.yml
user0x42 c22282e1bd
Einige Prüfungen sind fehlgeschlagen
Build and Deploy with Vercel / build-and-deploy (push) Failing after 8s
recreate vercel-deploy script
2025-02-27 12:29:26 +01:00

43 Zeilen
1,2 KiB
YAML

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.17.2"
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
sudo 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: 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