mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 17:23:22 +00:00
Upload one file per Vercel preview deployment (#32231)
Currently, the Vercel preview workflow uses the default `vercel deploy` behavior, which uploads every source file to Vercel. The result is often rate limiting by the Vercel API, which prevents some preview workflows from running. This change adds the `--archive=tgz` flag to the `vercel deploy` command to upload a single tarball instead, as recommended by Vercel support. The flag is undocumented, but you can consult the PR that added it to the `vercel` CLI (vercel/vercel#8356) for context.
This commit is contained in:
parent
91dd4826b5
commit
b529a4b9e9
2
.github/workflows/vercel-preview.yaml
vendored
2
.github/workflows/vercel-preview.yaml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
|||
- name: Deploy Project Artifacts to Vercel
|
||||
id: deploy
|
||||
run: |
|
||||
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > deployment-url.txt
|
||||
vercel deploy --archive=tgz --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > deployment-url.txt
|
||||
preview_url="$(cat deployment-url.txt)"
|
||||
echo "PREVIEW_URL=$preview_url" >> $GITHUB_OUTPUT
|
||||
- uses: actions/github-script@v6
|
||||
|
|
Loading…
Reference in a new issue