Skip to content

Commit

Permalink
fix: [Releases] one more try on env syntax (#407)
Browse files Browse the repository at this point in the history
Followup to #405 

## What changed? Why?
Better syntax for env variables I think?
  • Loading branch information
dgattey committed Oct 1, 2023
2 parents 04e34f0 + 13417da commit 8065db9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ jobs:
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
if: ${{ steps.latest-version-tag.outputs.tag != '' }}
run: vercel pull --yes --environment=production --token=${VERCEL_TOKEN}
run: vercel pull --yes --environment=production --token=${{ env.VERCEL_TOKEN }}
- name: Build Project Artifacts with latest version
if: ${{ steps.latest-version-tag.outputs.tag != '' }}
run: |
echo "Latest tag: ${LATEST_TAG}"
vercel build --prod --token=${VERCEL_TOKEN} NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}" -e NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}"
vercel build --prod --token=${{ env.VERCEL_TOKEN }} NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}" -e NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}"
env:
LATEST_TAG: ${{ steps.latest-version-tag.outputs.tag }}
- name: Deploy Project Artifacts to Vercel
if: ${{ steps.latest-version-tag.outputs.tag != '' }}
run: vercel deploy --prebuilt --prod --token=${VERCEL_TOKEN}
run: vercel deploy --prebuilt --prod --token=${{ env.VERCEL_TOKEN }}

1 comment on commit 8065db9

@vercel
Copy link

@vercel vercel bot commented on 8065db9 Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dg – ./

dg.vercel.app
dg-dgattey.vercel.app
dylangattey.com
dg-git-main-dgattey.vercel.app

Please sign in to comment.