From 098585fec21d29cf4fe2536e327f28acafa0bc8f Mon Sep 17 00:00:00 2001 From: ljy <104685741+coder-ljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:02:28 +0800 Subject: [PATCH 1/8] Update config.json --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index 022a8dcc..d48c436d 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "url": "https://www.notion.so/b6fcf809ca5047b89f423948dce013a0?v=03ddc4d6130a47f8b68e74c9d0061de2", + "url": "https://coder-x.notion.site/29fc72cd1257444c9cac83b0c6133446", "theme": "pure-ejs", "previewBrowser": "/usr/bin/chromium", "autoSlug": true From 5ad907db6787b0555e7f5fa7c01b4e060dbb41cd Mon Sep 17 00:00:00 2001 From: ljy <104685741+coder-ljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:08:13 +0800 Subject: [PATCH 2/8] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..a708358e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ + # This is a basic workflow to help you get started with Actions + + name: Github Pages + + # Controls when the workflow will run + on: + schedule: + # 下一行是说在每天的国际标准时间23点(北京时间早上7点)触发该任务 + # 你可以随意修改 + - cron: '0 23 * * *' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + # A workflow run is made up of one or more jobs that can run sequentially or in parallel + jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # 拉取代码 + - name: Checkout + uses: actions/checkout@v2 + # 1、生成静态文件 + - name: Build + run: npm i -g notablog && notablog generate . + # 2、部署到 GitHub Pages + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4.2.5 + with: + token: ${{ secrets.ACCESS_TOKEN }} + repository-name: coder-ljy/notion_blog # 修改这里 + BRANCH: main # 如果你的仓库默认分支是 master 记得修改这里 + FOLDER: public From d2758ff3787972334fe53f20d2bd72bafba8ed2a Mon Sep 17 00:00:00 2001 From: ljy <104685741+coder-ljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:09:39 +0800 Subject: [PATCH 3/8] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a708358e..9e2048db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,8 +5,8 @@ # Controls when the workflow will run on: schedule: - # 下一行是说在每天的国际标准时间23点(北京时间早上7点)触发该任务 - # 你可以随意修改 + # 下一行是说在每天的国际标准时间23点(北京时间早上7点)触发该任务 + # 你可以随意修改 - cron: '0 23 * * *' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From c9d326aa8a3822ed0227f5a278904db4ab013b81 Mon Sep 17 00:00:00 2001 From: ljy <104685741+coder-ljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:21:12 +0800 Subject: [PATCH 4/8] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9e2048db..62d91014 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,6 @@ uses: JamesIves/github-pages-deploy-action@v4.2.5 with: token: ${{ secrets.ACCESS_TOKEN }} - repository-name: coder-ljy/notion_blog # 修改这里 + repository-name: coder-ljy/coder-ljy.github.io # 修改这里 BRANCH: main # 如果你的仓库默认分支是 master 记得修改这里 FOLDER: public From 70e303d91b418e91ed8182333a31cf8a616267b4 Mon Sep 17 00:00:00 2001 From: ljy <104685741+coderljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:26:28 +0800 Subject: [PATCH 5/8] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 62d91014..e50081b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,6 @@ uses: JamesIves/github-pages-deploy-action@v4.2.5 with: token: ${{ secrets.ACCESS_TOKEN }} - repository-name: coder-ljy/coder-ljy.github.io # 修改这里 + repository-name: coder-ljy/coderljy.github.io # 修改这里 BRANCH: main # 如果你的仓库默认分支是 master 记得修改这里 FOLDER: public From fd9e7c874ee1c423320b7cdc6e6b458a6a6aae28 Mon Sep 17 00:00:00 2001 From: ljy <104685741+coderljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:27:35 +0800 Subject: [PATCH 6/8] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e50081b6..3b048bfc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,6 @@ uses: JamesIves/github-pages-deploy-action@v4.2.5 with: token: ${{ secrets.ACCESS_TOKEN }} - repository-name: coder-ljy/coderljy.github.io # 修改这里 + repository-name: coderljy/coderljy.github.io # 修改这里 BRANCH: main # 如果你的仓库默认分支是 master 记得修改这里 FOLDER: public From 7e76742257362b225fcb6004b99358a52c9a8745 Mon Sep 17 00:00:00 2001 From: ljy <104685741+coderljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:46:17 +0800 Subject: [PATCH 7/8] Update config.json --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index d48c436d..ca700fad 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "url": "https://coder-x.notion.site/29fc72cd1257444c9cac83b0c6133446", + "url": "https://coder-x.notion.site/Copy-of-Movie-List-7b87a485bffe43c2af77639396f06a8f", "theme": "pure-ejs", "previewBrowser": "/usr/bin/chromium", "autoSlug": true From ca62da0f5486049270850e0316709061e2a6e39d Mon Sep 17 00:00:00 2001 From: ljy <104685741+coderljy@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:53:09 +0800 Subject: [PATCH 8/8] Update config.json --- config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.json b/config.json index ca700fad..8a6f77d0 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "url": "https://coder-x.notion.site/Copy-of-Movie-List-7b87a485bffe43c2af77639396f06a8f", + "url": "https://coder-x.notion.site/361acf2ebfca46a0a07741ac768e248e?v=d3f04faa5bcd49d0964562be41410ea8", "theme": "pure-ejs", "previewBrowser": "/usr/bin/chromium", "autoSlug": true