Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 5 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -485,38 +485,18 @@ jobs:
exit 1
fi

- name: Pull production project settings
# Build remotely on Vercel so sensitive production environment variables
# remain available to the Vercel build and are never pulled into CI.
- name: Deploy production to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: >-
pnpm dlx vercel@${VERCEL_CLI_VERSION} pull
pnpm dlx vercel@${VERCEL_CLI_VERSION} deploy
--project="${VERCEL_PROJECT_ID}"
--yes
--environment=production
--token="${VERCEL_TOKEN}"

- name: Build production deployment
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: >-
pnpm dlx vercel@${VERCEL_CLI_VERSION} build
--scope=ontos-ai
--prod
--token="${VERCEL_TOKEN}"

- name: Deploy production build
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
shell: bash
run: |
set -euo pipefail
deployment_url="$(
pnpm dlx "vercel@${VERCEL_CLI_VERSION}" deploy \
--prebuilt \
--prod \
--token="${VERCEL_TOKEN}"
)"
echo "Production deployment: ${deployment_url}"

attach-release-assets:
name: Attach Release Assets
if: ${{ github.event_name == 'release' }}
Expand Down
Loading