File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2020 deploy-preview :
2121 needs : [test]
2222 runs-on : ubuntu-latest
23+ permissions :
24+ pull-requests : write
2325 # Do not run for PR from forks
2426 if : github.event.pull_request.head.repo.full_name == github.repository
2527
3739 run : vercel build --token=${{ secrets.VERCEL_TOKEN }}
3840
3941 - name : Deploy Project Artifacts to Vercel
40- run : vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }}
42+ id : deploy_step
43+ run : echo "preview-url=$(vercel deploy --prebuilt --archive=tgz --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
44+
45+ - name : Comment Preview URL
46+ uses : marocchino/sticky-pull-request-comment@v2
47+ with :
48+ message : |
49+ Preview: ${{ steps.deploy_step.outputs.preview-url }}
You can’t perform that action at this time.
0 commit comments