diff --git a/.github/workflows/build-site.yml b/.github/workflows/build-site.yml deleted file mode 100644 index c80bcaf..0000000 --- a/.github/workflows/build-site.yml +++ /dev/null @@ -1,15 +0,0 @@ -on: push -name: build and deploy -jobs: - build: - runs-on: docker - if: github.ref == 'refs/heads/main' - steps: - - name: checkout - uses: actions/checkout@v4 - - name: build_and_deploy - uses: https://github.com/shalzz/zola-deploy-action@master - env: - PAGES_BRANCH: web - TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_HOSTNAME: code.xsiz.eu diff --git a/.github/workflows/vercel-preview.yaml b/.github/workflows/vercel-preview.yaml new file mode 100644 index 0000000..d7d8a97 --- /dev/null +++ b/.github/workflows/vercel-preview.yaml @@ -0,0 +1,21 @@ +name: Vercel Preview Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches-ignore: + - main +jobs: + Deploy-Preview: + runs-on: docker + steps: + - uses: actions/checkout@v2 + - name: Install Vercel CLI + run: npm install --global vercel@latest + - name: Pull Vercel Environment Information + run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e985853 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vercel diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..289a333 --- /dev/null +++ b/vercel.json @@ -0,0 +1,4 @@ +{ + "trailingSlash": true, + "cleanUrls": true +}