Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #52: Change vercel deployment workflow to use ENV secrets as .env file #62

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/workflow-vercel-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,25 @@ jobs:
- name: install npm
run: npm install -g [email protected]

- name: Create .env from secret
uses: alekangelov/secret-envfile@v1
with:
content: ${{ secrets.ENV }}
filename: .env

- name: Push env variables to vercel
uses: hackzcompany/vercel-env-push-action@v4
with:
project: ${{ env.VERCEL_PROJECT_NAME }}
team_id: ${{ secrets.VERCEL_ORG_ID }}
token: ${{ secrets.VERCEL_TOKEN }}
env_file: .env

- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: vercel pull --yes --environment=development --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
Expand Down