Skip to content

Commit

Permalink
Merge pull request #118 from HackAtUCI/feature/google-calendar-events
Browse files Browse the repository at this point in the history
Replace Facebook Graph API with Google Calendar File for Events
  • Loading branch information
samderanova committed Oct 5, 2023
2 parents 63f5694 + 80f77d8 commit 7e590c9
Show file tree
Hide file tree
Showing 13 changed files with 18,697 additions and 16,698 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,19 @@ jobs:
cache: "npm"
cache-dependency-path: "**/package-lock.json"

- name: Install npm dependencies
- name: Install CDK npm dependencies
uses: bahmutov/npm-install@v1
with:
working-directory: cdk

- name: Install client/server npm dependencies
uses: bahmutov/npm-install@v1
with:
working-directory: |
cdk
server
client
server
env:
NODE_ENV: production

- name: Deploy Server API
id: deploy-server
Expand All @@ -42,8 +48,6 @@ jobs:
api_url=$(node getApiUrl.js)
echo "::set-output name=api_url::$api_url"
cd ..
env:
FB_PAGE_TOKEN: ${{ secrets.FB_PAGE_TOKEN }}
- name: Build client
run: |
Expand Down
8 changes: 1 addition & 7 deletions cdk/lib/stacks/ServiceStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ class ServiceStack extends Stack {
constructor(scope: Construct, id: string, env?: StackProps) {
super(scope, id, env);

const FB_PAGE_TOKEN = process.env.FB_PAGE_TOKEN;
if (!FB_PAGE_TOKEN) {
throw Error("Environment variable FB_PAGE_TOKEN is not defined");
}
const environment = {
FB_PAGE_TOKEN,
};
const environment = {};
this.clubSiteApi = new ClubSiteApi(this, "ClubSiteApi", { environment });

const functionUrlOutput = new CfnOutput(this, "ClubSiteApiFunctionUrl", {
Expand Down
Loading

0 comments on commit 7e590c9

Please sign in to comment.