diff --git a/.github/workflows/sharevb-vercel-preview.yml b/.github/workflows/sharevb-vercel-preview.yml new file mode 100644 index 00000000..f18c9a5b --- /dev/null +++ b/.github/workflows/sharevb-vercel-preview.yml @@ -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: + - chore/all-my-stuffs +jobs: + Deploy-Preview: + runs-on: ubuntu-latest + 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 }} \ No newline at end of file diff --git a/.github/workflows/sharevb-vercel-prod.yml b/.github/workflows/sharevb-vercel-prod.yml new file mode 100644 index 00000000..937d727e --- /dev/null +++ b/.github/workflows/sharevb-vercel-prod.yml @@ -0,0 +1,21 @@ +name: Vercel Production Deployment +env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +on: + push: + branches: + - chore/all-my-stuffs +jobs: + Deploy-Production: + runs-on: ubuntu-latest + 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=production --token=${{ secrets.VERCEL_TOKEN }} + - name: Build Project Artifacts + run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} + - name: Deploy Project Artifacts to Vercel + run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 63d28c2e..475fcd53 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,5 @@ coverage # Webkit with playwright creates a salt file salt # WSL can create Zone.Identifier -*:Zone.Identifier \ No newline at end of file +*:Zone.Identifier +.vercel diff --git a/vercel.json b/vercel.json index 0ee808a1..3ed901b1 100644 --- a/vercel.json +++ b/vercel.json @@ -1,3 +1,6 @@ { - "routes": [{ "handle": "filesystem" }, { "src": "/(.*)", "dest": "/index.html" }] -} + "$schema": "https://openapi.vercel.sh/vercel.json", + "git": { + "deploymentEnabled": false + } +} \ No newline at end of file