From 4306d12f83d8b65118e5370db4cf0faf549b24a8 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sun, 13 Sep 2020 22:32:55 +0800 Subject: [PATCH 01/10] :construction_worker: add api docs ci --- .github/workflows/api_docs.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/api_docs.yml diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml new file mode 100644 index 00000000..01c1c4a8 --- /dev/null +++ b/.github/workflows/api_docs.yml @@ -0,0 +1,31 @@ +name: Build API Doc + +on: + pull_request: + types: [ opened, synchronize, reopened ] + branches: [ master, dev ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Install Dependences + run: pip3 install . + + - name: Build Doc + run: sphinx-build -M markdown ./docs_build ./build + + - name: Copy Files + run: cp ./build/markdown/*.md ./docs/api/ + + - run: | + git config user.name nonebot + git config user.email nonebot@nonebot.dev + git add . + git commit -m ":memo: update api docs" + git push From 541dce6c546eb690a6c1e3f2c4b0b458da530fe3 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Wed, 23 Sep 2020 23:14:03 +0800 Subject: [PATCH 02/10] Update api_docs.yml --- .github/workflows/api_docs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 01c1c4a8..346e5bfb 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -15,7 +15,9 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Install Dependences - run: pip3 install . + run: | + pip3 install poetry + poetry install - name: Build Doc run: sphinx-build -M markdown ./docs_build ./build From 2319ab7d2012a8c84013aab12e588613b376debc Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Wed, 23 Sep 2020 23:32:34 +0800 Subject: [PATCH 03/10] :construction_worker: update api docs ci --- .github/workflows/api_docs.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 346e5bfb..4657d98e 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -13,11 +13,17 @@ jobs: - uses: actions/checkout@v2 with: ref: ${{ github.event.pull_request.head.sha }} + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + architecture: "x64" - name: Install Dependences run: | - pip3 install poetry - poetry install + python -m pip install --upgrade pip + pip install . - name: Build Doc run: sphinx-build -M markdown ./docs_build ./build From 68795c36f22f0ae208f258f9f2c8d0d3149edcd3 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Wed, 23 Sep 2020 23:36:06 +0800 Subject: [PATCH 04/10] :construction_worker: update api docs ci --- .github/workflows/api_docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 4657d98e..0d32f04b 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -23,7 +23,8 @@ jobs: - name: Install Dependences run: | python -m pip install --upgrade pip - pip install . + pip install poetry + poetry install - name: Build Doc run: sphinx-build -M markdown ./docs_build ./build From 1045e6a7979d306876920de58304d83aebfbbeeb Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Wed, 23 Sep 2020 23:42:06 +0800 Subject: [PATCH 05/10] :construction_worker: update api docs ci --- .github/workflows/api_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 0d32f04b..b6dab96b 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -27,7 +27,7 @@ jobs: poetry install - name: Build Doc - run: sphinx-build -M markdown ./docs_build ./build + run: poetry run sphinx-build -M markdown ./docs_build ./build - name: Copy Files run: cp ./build/markdown/*.md ./docs/api/ From 1d7180e6cdeaeed828b99e0f6543bf3f9ae223e8 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Thu, 24 Sep 2020 00:04:43 +0800 Subject: [PATCH 06/10] :construction_worker: update api docs ci --- .github/workflows/api_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index b6dab96b..ebf1741a 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -36,5 +36,5 @@ jobs: git config user.name nonebot git config user.email nonebot@nonebot.dev git add . - git commit -m ":memo: update api docs" + git diff-index --quiet HEAD || git commit -m ":memo: update api docs" git push From 9171894a15fc29642f4d76eafdda194525169c1d Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Thu, 24 Sep 2020 00:22:35 +0800 Subject: [PATCH 07/10] :construction_worker: update api docs ci --- .github/workflows/api_docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index ebf1741a..69b88640 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -37,4 +37,4 @@ jobs: git config user.email nonebot@nonebot.dev git add . git diff-index --quiet HEAD || git commit -m ":memo: update api docs" - git push + git push origin HEAD:${{github.event.pull_request.head.ref}} From 3bd9a9cc73b35134468559a3c63fde1518113c40 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Thu, 24 Sep 2020 00:30:50 +0800 Subject: [PATCH 08/10] Update api_docs.yml --- .github/workflows/api_docs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 69b88640..4b3b83ef 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -37,4 +37,6 @@ jobs: git config user.email nonebot@nonebot.dev git add . git diff-index --quiet HEAD || git commit -m ":memo: update api docs" - git push origin HEAD:${{github.event.pull_request.head.ref}} + git remote -vv + git remote add target ${{github.event.pull_request.head.repo.clone_url}} + git push target HEAD:${{github.event.pull_request.head.ref}} From b955024818ff9bd844a7b5fd51aa321eadcad499 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sun, 27 Sep 2020 19:19:28 +0800 Subject: [PATCH 09/10] :construction_worker: update api docs ci --- .github/workflows/api_docs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 4b3b83ef..080cbd2e 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -3,7 +3,9 @@ name: Build API Doc on: pull_request: types: [ opened, synchronize, reopened ] - branches: [ master, dev ] + branches: + - master + - dev jobs: build: From 73e6062a1bf021508e55419cd7bc67709254bb13 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Tue, 29 Sep 2020 22:29:51 +0800 Subject: [PATCH 10/10] :construction_worker: update api docs ci --- .github/workflows/api_docs.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/api_docs.yml b/.github/workflows/api_docs.yml index 080cbd2e..18d3085e 100644 --- a/.github/workflows/api_docs.yml +++ b/.github/workflows/api_docs.yml @@ -3,9 +3,6 @@ name: Build API Doc on: pull_request: types: [ opened, synchronize, reopened ] - branches: - - master - - dev jobs: build: @@ -32,7 +29,7 @@ jobs: run: poetry run sphinx-build -M markdown ./docs_build ./build - name: Copy Files - run: cp ./build/markdown/*.md ./docs/api/ + run: cp -r ./build/markdown/* ./docs/api/ - run: | git config user.name nonebot