Skip to content

Commit

Permalink
output preview url
Browse files Browse the repository at this point in the history
  • Loading branch information
webhookx-x committed Aug 28, 2024
1 parent 365c474 commit 5354564
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,12 @@ jobs:
with:
args: deploy --dir=.vitepress/dist
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'

- name: Netlify Preview URL
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OUTPUT: "This pull request is being automatically deployed to Netlify.\n\n🔍 Inspect: ${{ steps.deploy-neflify.outputs.NETLIFY_LOGS_URL }}\n✅ Preview: ${{ steps.deploy-neflify.outputs.NETLIFY_URL }}"
with:
msg: ${{ env.OUTPUT }}
check_for_duplicate_msg: false

0 comments on commit 5354564

Please sign in to comment.