From f1970e9a8d2e31c96baddabc5d7ec6f2b9962109 Mon Sep 17 00:00:00 2001 From: shangfengh <3495281661@qq.com> Date: Thu, 20 Apr 2023 18:25:24 +0800 Subject: [PATCH] feat: :sparkles: Try Creat PDF --- .github/workflows/CreatPdf.yml | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/CreatPdf.yml diff --git a/.github/workflows/CreatPdf.yml b/.github/workflows/CreatPdf.yml new file mode 100644 index 0000000..4b5e5ba --- /dev/null +++ b/.github/workflows/CreatPdf.yml @@ -0,0 +1,48 @@ +name: "upload_COS" + +############################################################################### +# This ci packages the repository files and uploads them to +# the Tencent cloud storage bucket +############################################################################### + +on: + push: + branches: [ new ] + +jobs: + build_upload: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup dotnet Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Pip Install paramiko + run: pip install paramiko + + - name: Copy Markdown + run: | + mkdir -p ./Md/ + cp ./CAPI/CAPI接口(cpp).md ./Md/ + cp ./CAPI/CAPI接口(python).md ./Md/ + cp ./CAPI/Tool_tutorial.md ./Md/ + cp ./QandA.md ./Md/ + cp ./使用文档.md ./Md/ + cp ./logic/GameRules.md ./Md/ + + - name: Markdown to PDF and HTML + uses: BaileyJM02/markdown-to-pdf@v1.2.0 + with: + input_dir: ./Md + output_dir: ./THUAI6/ + images_dir: ./resource + image_import: ./images + build_html: false \ No newline at end of file