Skip to content

Commit

Permalink
fix: variable don't work, abaddon idea
Browse files Browse the repository at this point in the history
  • Loading branch information
Byczax committed Feb 21, 2023
1 parent a5e911c commit 20ac621
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
name: CI

variables:
ENV_VARIABLES: echo NEXTAUTH_URL=http://localhost:3000 >> .env
echo NEXTAUTH_SECRET=secret >> .env
echo GOOGLE_CLIENT_ID=123 >> .env
echo GOOGLE_CLIENT_SECRET=123 >> .env
echo DATABASE_URL="postgres://postgres:postgres@localhost:5432/postgres" >> .env
echo SMTP_HOST="smtp.gmail.com" >> .env
echo SMTP_USERNAME="example@gmail.com" >> .env
echo SMTP_PASSWORD="example_password" >> .env
echo EMAIL_FROM="example name" >> .env

on:
push:
branches: ["main"]
Expand All @@ -31,7 +20,15 @@ jobs:
- name: Setup env
run: |
touch .env
$ENV_VARIABLES
echo NEXTAUTH_URL=http://localhost:3000 >> .env
echo NEXTAUTH_SECRET=secret >> .env
echo GOOGLE_CLIENT_ID=123 >> .env
echo GOOGLE_CLIENT_SECRET=123 >> .env
echo DATABASE_URL="postgres://postgres:postgres@localhost:5432/postgres" >> .env
echo SMTP_HOST="smtp.gmail.com" >> .env
echo SMTP_USERNAME="example@gmail.com" >> .env
echo SMTP_PASSWORD="example_password" >> .env
echo EMAIL_FROM="example name" >> .env
- name: format
run: npm run format:check
- name: lint
Expand All @@ -47,7 +44,15 @@ jobs:
- name: Setup env
run: |
touch .env
$ENV_VARIABLES
echo NEXTAUTH_URL=http://localhost:3000 >> .env
echo NEXTAUTH_SECRET=secret >> .env
echo GOOGLE_CLIENT_ID=123 >> .env
echo GOOGLE_CLIENT_SECRET=123 >> .env
echo DATABASE_URL="postgres://postgres:postgres@localhost:5432/postgres" >> .env
echo SMTP_HOST="smtp.gmail.com" >> .env
echo SMTP_USERNAME="example@gmail.com" >> .env
echo SMTP_PASSWORD="example_password" >> .env
echo EMAIL_FROM="example name" >> .env
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
Expand Down

0 comments on commit 20ac621

Please sign in to comment.