Skip to content

Commit

Permalink
Use .env.local and fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubCzarlinski committed Oct 30, 2023
1 parent 1082d00 commit 1355232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
env:
GOOGLE_CAL_API_KEY: ${{ secrets.GOOGLE_CAL_API_KEY }}
GOOGLE_CAL_ID: ${{ secrets.GOOGLE_CAL_ID }}
run: |
touch .env.local
echo "GOOGLE_CAL_API_KEY=${{ secrets.GOOGLE_CAL_API_KEY }}" >> .env.local
echo "GOOGLE_CAL_ID=${{ secrets.GOOGLE_CAL_ID }}" >> .env.local
${{ steps.detect-package-manager.outputs.runner }} next build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion src/app/calendar/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import FullCalendar from "@fullcalendar/react";
import React from "react";

const apiKey = process.env.GOOGLE_CAL_API_KEY || "FAKE_KEY";
const calendarId = process.env.GOOGLE_CALENDAR_ID || "FAKE_ID";
const calendarId = process.env.GOOGLE_CAL_ID || "FAKE_ID";

export default class Calendar extends React.Component {
render() {
Expand Down

0 comments on commit 1355232

Please sign in to comment.