Skip to content

Commit

Permalink
ci: enable login on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Rei-x committed Feb 13, 2023
1 parent e40fdc3 commit 7f48368
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
rm .env
touch .env
echo NEXTAUTH_URL=https://sos.sspwr.edu.eu.org >> .env
echo NEXTAUTH_SECRET={{ secrets.NEXTAUTH_SECRET }} >> .env
echo GOOGLE_CLIENT_ID=123 >> .env
echo GOOGLE_CLIENT_SECRET=123 >> .env
echo NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} >> .env
echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> .env
echo GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} >> .env
echo DATABASE_URL="postgres://postgres:postgres@localhost:5432/postgres" >> .env
git pull
npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ jobs:
touch .env
echo NEXTAUTH_URL=${{ steps.tunnel-url.outputs.tunnel-url }} >> .env
echo NEXTAUTH_SECRET=secret >> .env
echo GOOGLE_CLIENT_ID=123 >> .env
echo GOOGLE_CLIENT_SECRET=123 >> .env
echo GOOGLE_CLIENT_ID=${{ secrets.GOOGLE_CLIENT_ID }} >> .env
echo GOOGLE_CLIENT_SECRET=${{ secrets.GOOGLE_CLIENT_SECRET }} >> .env
echo DATABASE_URL="postgres://postgres:postgres@localhost:5432/postgres" >> .env
npm run build
npx prisma migrate deploy
Expand Down

0 comments on commit 7f48368

Please sign in to comment.