Skip to content

Commit

Permalink
build(github): update preview env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Marshall <[email protected]>
  • Loading branch information
alexhq committed Aug 8, 2023
1 parent 1c5f870 commit bb983a4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/vercel-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
Deploy-Preview:
if: contains(github.event.pull_request.labels.*.name, 'documentation') || contains (github.label, 'documentation')
runs-on: ubuntu-latest
env:
PREVIEW_URL: hello
steps:
- id: step1
uses: actions/checkout@v2
Expand All @@ -31,8 +29,8 @@ jobs:
name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- id: step5
name: Deploy Project Artifacts to Vercel
run: export PREVIEW="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} )" >> $GITHUB_ENV
name: Deploy Project Artifacts to Vercel and get preview URL
run: echo preview="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} )" >> $GITHUB_ENV
- id: step6
name: Comment with Preview URL
uses: actions/github-script@v6
Expand All @@ -42,5 +40,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Preview URL: ${PREVIEW}'
body: 'Preview URL: ${{ env.preview }}
})

0 comments on commit bb983a4

Please sign in to comment.