Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ce6354d

Browse files
author
msingh
committed
deployment of service using github workflows
1 parent 6ce97a3 commit ce6354d

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

‎.github/workflows/daily-update.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Daily LeetCode to Notion Update
2+
3+
on:
4+
schedule:
5+
# Schedule to run at 00:00 UTC every day
6+
- cron: "0 0 * * *"
7+
8+
jobs:
9+
update-notion:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Checkout the repository
14+
- name: Checkout Code
15+
uses: actions/checkout@v3
16+
17+
# Set up Node.js
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
23+
# Install dependencies
24+
- name: Install Dependencies
25+
run: npm install
26+
27+
# Run the script
28+
- name: Run Notion Update Script
29+
run: node index.js
30+
env:
31+
LEETCODE_USERNAME: "msn2106"
32+
NOTION_API_KEY: "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"
33+
NOTION_DATABASE_NAME: "LeetCode Problems"

‎config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"leetcodeUsername": "msn2106",
33
"notionApiKey": "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",
4-
"notionParentPageId": "your_notion_parent_page_id",
54
"NOTION_DATABASE_NAME": "LeetCode Problems"
65
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /