Skip to content

fix: 🩹 env type to string #9

fix: 🩹 env type to string

fix: 🩹 env type to string #9

Workflow file for this run

name: 🚀 Deploy Web
on:
push:
branches: [main]
jobs:
build:
runs-on: self-hosted
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: 💻 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: 🔐 Create Production Environment File
run: |
touch .env
echo NEXT_PUBLIC_HCAPTCHA = ${{ secrets.NEXT_PUBLIC_HCAPTCHA }} >> .env
echo NEXT_PUBLIC_EMAILJS_SERVICE_ID = ${{ secrets.NEXT_PUBLIC_EMAILJS_SERVICE_ID }} >> .env
echo NEXT_PUBLIC_EMAILJS_TEMPLATE_ID = ${{ secrets.NEXT_PUBLIC_EMAILJS_TEMPLATE_ID }} >> .env
echo NEXT_PUBLIC_EMAILJS_PUBLIC_KEY = ${{ secrets.NEXT_PUBLIC_EMAILJS_PUBLIC_KEY }} >> .env
echo NEXT_PUBLIC_POSTHOG_KEY = ${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }} >> .env
echo NEXT_PUBLIC_POSTHOG_HOST = ${{ secrets.NEXT_PUBLIC_POSTHOG_HOST }} >> .env
echo NODE_ENV = ${{ secrets.NODE_ENV }} >> .env
- run: npm install
- run: npm run build