Skip to content

Commit

Permalink
Add preview url to deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofandrin committed Nov 18, 2024
1 parent 29dd895 commit 1afc6d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/prev.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
environment: preview
environment:
name: preview
url: ${{ steps.deployment.outputs.preview_url }}
steps:
- uses: actions/checkout@v3
- name: Install Vercel CLI
Expand All @@ -20,4 +22,6 @@ jobs:
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
id: deployment
run: echo "preview_url=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})\n" >> $GITHUB_OUTPUT

0 comments on commit 1afc6d7

Please # to comment.