From bb15950d9f3638052ef7be2668f6ecff43f20077 Mon Sep 17 00:00:00 2001 From: ouyen <60745334+ouyen@users.noreply.github.com> Date: Tue, 13 Sep 2022 14:28:05 +0800 Subject: [PATCH 1/7] Update Course.py --- Course.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Course.py b/Course.py index 650d8d3..d1eae52 100644 --- a/Course.py +++ b/Course.py @@ -71,6 +71,10 @@ def write_html(self): ## 风险自负!!! +## star me: + +https://github.com/ouyen/qndxx-beijing/ + ''' with open('html/index.md', 'w', encoding='utf-8') as f: f.write(text) From c3adb5cb4bf6e86f24a1ab47d12f55b2cd732fbd Mon Sep 17 00:00:00 2001 From: ouyen <60745334+ouyen@users.noreply.github.com> Date: Tue, 13 Sep 2022 14:36:57 +0800 Subject: [PATCH 2/7] change page deploy --- .github/workflows/main.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d980f3f..40fa1cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,7 +10,11 @@ on: workflow_dispatch: jobs: - build: + # build: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: @@ -47,9 +51,19 @@ jobs: source: html/index.md output: html/index.html - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + # - name: Deploy + # uses: peaceiris/actions-gh-pages@v3 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # publish_dir: ./html + - name: Setup Pages + uses: actions/configure-pages@v2 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./html + # Upload entire repository + path: './html' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 \ No newline at end of file From c92ece0183bf4d784ffa354aeb770cb5734fde97 Mon Sep 17 00:00:00 2001 From: ouyen <60745334+ouyen@users.noreply.github.com> Date: Tue, 13 Sep 2022 15:21:32 +0800 Subject: [PATCH 3/7] CNAME --- .github/workflows/main.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 40fa1cf..70fbd79 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,19 +51,24 @@ jobs: source: html/index.md output: html/index.html - # - name: Deploy - # uses: peaceiris/actions-gh-pages@v3 - # with: - # github_token: ${{ secrets.GITHUB_TOKEN }} - # publish_dir: ./html - - name: Setup Pages - uses: actions/configure-pages@v2 - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + - name: CNAME + runs: | + touch ./html/CNAME + echo 'qndxx.tk' > ./html/CNAME + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 with: - # Upload entire repository - path: './html' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./html + # - name: Setup Pages + # uses: actions/configure-pages@v2 + # - name: Upload artifact + # uses: actions/upload-pages-artifact@v1 + # with: + # # Upload entire repository + # path: './html' + # - name: Deploy to GitHub Pages + # id: deployment + # uses: actions/deploy-pages@v1 \ No newline at end of file From 390bf4a75960851bdb5b01bcde31bed5c60ab5be Mon Sep 17 00:00:00 2001 From: ouyen <60745334+ouyen@users.noreply.github.com> Date: Tue, 13 Sep 2022 15:23:09 +0800 Subject: [PATCH 4/7] typo --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70fbd79..7f56b94 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,7 +53,6 @@ jobs: - name: CNAME runs: | - touch ./html/CNAME echo 'qndxx.tk' > ./html/CNAME - name: Deploy From 740f8615c2c4583632ba1c9657232eed20d46a90 Mon Sep 17 00:00:00 2001 From: ouyen <60745334+ouyen@users.noreply.github.com> Date: Tue, 13 Sep 2022 15:23:44 +0800 Subject: [PATCH 5/7] typo --- .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 7f56b94..7e23dcd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,7 @@ jobs: output: html/index.html - name: CNAME - runs: | + run: | echo 'qndxx.tk' > ./html/CNAME - name: Deploy From 06779646110db1bd73d90135ab69d87aede6d16e Mon Sep 17 00:00:00 2001 From: ouyen <60745334+ouyen@users.noreply.github.com> Date: Wed, 14 Sep 2022 01:15:48 +0800 Subject: [PATCH 6/7] remover referrer --- Course.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Course.py b/Course.py index d1eae52..8a1c979 100644 --- a/Course.py +++ b/Course.py @@ -49,7 +49,8 @@ def download_img(self): return False def write_html(self): - text = f'''# 青年大学习(北京) + text = f''' +# 青年大学习(北京) ## 使用方法 From 802360c295ef6788271401a00edf9bd94a426cbd Mon Sep 17 00:00:00 2001 From: ouyen <60745334+ouyen@users.noreply.github.com> Date: Wed, 14 Sep 2022 01:20:42 +0800 Subject: [PATCH 7/7] typo --- Course.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Course.py b/Course.py index 8a1c979..1059747 100644 --- a/Course.py +++ b/Course.py @@ -50,6 +50,7 @@ def download_img(self): def write_html(self): text = f''' + # 青年大学习(北京) ## 使用方法