feat: enable vercel

This commit is contained in:
tresabhi committed 2025-01-10 10:38:02 -06:00
1 parent 4c0c10e39e
commit 6ccffa0458
2 files changed
+1 -31

No files matched your search

+1 -26
View File
@@ -2,6 +2,7 @@ name: Website
on:
push:
branches: main
workflow_dispatch:
schedule:
@@ -52,8 +53,6 @@ jobs:
path: dist/website
deploy-github-pages:
if: github.ref == 'refs/heads/main'
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
@@ -65,27 +64,3 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
deploy-vercel:
name: Deploy to Vercel
needs: build
runs-on: ubuntu-latest
environment:
name: Preview
steps:
# vercel begs for the .git dir so here it is my guy
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
path: ./dist/website
- uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./dist/website
-5
View File
@@ -1,5 +0,0 @@
{
"github": {
"enabled": false
}
}