mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-04 11:09:07 +09:00
Try fix
This commit is contained in:
1 parent
96bdf712e9
commit
35b7262bbf
1 file changed
+12
-8
@@ -107,23 +107,27 @@ runs:
|
||||
- name: Deploy
|
||||
id: deploy
|
||||
run: |
|
||||
PROD_FLAGS=""
|
||||
if [ "${{ inputs.environment }}" = "production" ]; then
|
||||
PROD_FLAGS="--prod --skip-domain"
|
||||
pnpx vercel deploy \
|
||||
--prebuilt \
|
||||
--prod \
|
||||
--skip-domain \
|
||||
--token ${{ inputs.vercel-token }} \
|
||||
2> >(tee info.txt >&2) | tee domain.txt
|
||||
else
|
||||
pnpx vercel deploy \
|
||||
--prebuilt \
|
||||
--token ${{ inputs.vercel-token }} \
|
||||
2> >(tee info.txt >&2) | tee domain.txt
|
||||
fi
|
||||
|
||||
pnpx vercel deploy \
|
||||
--prebuilt \
|
||||
$PROD_FLAGS \
|
||||
--token ${{ inputs.vercel-token }} \
|
||||
2> >(tee info.txt >&2) | tee domain.txt
|
||||
|
||||
echo "domain=$(cat ./domain.txt)" >> $GITHUB_OUTPUT
|
||||
echo "inspect-url=$(cat info.txt | grep 'Inspect:' | awk '{print $2}')" >> $GITHUB_OUTPUT
|
||||
|
||||
shell: bash
|
||||
|
||||
- name: Set Alias
|
||||
if: ${{ inputs.environment != 'production' }}
|
||||
id: alias
|
||||
run: |
|
||||
ALIAS="${{ steps.branch.outputs.value }}"
|
||||
|
||||
Reference in new issue
Block a user