Skip to content

Commit d9481ff

Browse files
committed
fix comment
1 parent 9515610 commit d9481ff

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ jobs:
5757
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
5858

5959
- name: Deploy to Vercel
60-
run: |
61-
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} --archive=tgz --yes
6260
id: deploy
61+
run: |
62+
DEPLOY_URL=$(vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} --archive=tgz --yes)
63+
echo "url=$DEPLOY_URL" >> $GITHUB_OUTPUT
6364
6465
- name: Comment deployment URL on PR
6566
if: github.event_name == 'pull_request'
@@ -70,5 +71,5 @@ jobs:
7071
issue_number: context.issue.number,
7172
owner: context.repo.owner,
7273
repo: context.repo.repo,
73-
body: '🚀 Deployed to Vercel!\n\nContracts deployed to devnet and website published.'
74+
body: '🚀 Deployed to Vercel!\n\n**Preview URL:** ${{ steps.deploy.outputs.url }}'
7475
})

0 commit comments

Comments
 (0)