From 7616b3a984933611d529a3d34b10f079fcbe957c Mon Sep 17 00:00:00 2001 From: Viktor Date: Mon, 18 Nov 2024 11:19:25 +0100 Subject: [PATCH] set email service keys --- .env | 1 + .github/workflows/nextjs.yml | 6 ++++++ .gitignore | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..995fca4 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +NODE_ENV=production \ No newline at end of file diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index d8d7587..d4476a8 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -35,6 +35,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Set env variables + run: | + echo "NEXT_PUBLIC_EMAIL_PUBLIC_KEY=${{ secrets.NEXT_PUBLIC_EMAIL_PUBLIC_KEY }}" >> .env + echo "NEXT_PUBLIC_EMAIL_SERVICE_ID=${{ secrets.NEXT_PUBLIC_EMAIL_SERVICE_ID }}" >> .env + echo "NEXT_PUBLIC_EMAIL_TEMPLATE_ID=${{ secrets.NEXT_PUBLIC_EMAIL_TEMPLATE_ID }}" >> .env - name: Detect package manager id: detect-package-manager run: | diff --git a/.gitignore b/.gitignore index 8585166..fd3dbb5 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,3 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts -.env