From 396b836ba8d6d7575f0ece4a3bef64e823723fc5 Mon Sep 17 00:00:00 2001 From: postyizhan <185839426@qq.com> Date: Sat, 23 Mar 2024 14:16:01 +0800 Subject: [PATCH] fix --- .github/workflows/build.yml | 136 ++++++++++++++++++------------------ 1 file changed, 69 insertions(+), 67 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 40e5a005c6..fd91414540 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,73 +23,75 @@ jobs: ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} BRANCH: gh-pages FOLDER: build - # 自动生成PDF - pdf: - needs: [ gitpage ] - runs-on: ubuntu-latest - steps: - # 拉取代码 - - name: Checkout - uses: actions/checkout@master - with: - persist-credentials: false - # 睡会儿, 等GitPage部署完成 - - name: Sleep for 120 seconds - run: sleep 120s - shell: bash - # 生成PDF - - name: Build PDF - run: sudo docker run --rm -v ${{ github.workspace }}/pdf:/app/pdf iseason/docusaurus-to-pdf -u https://postyizhan.github.io/Dumb_Service_Guide/intro --output pdf/Folia-Tutorials.pdf - # 生成英文PDF -# - name: Build English PDF -# run: sudo docker run --rm -v ${{ github.workspace }}/pdf:/app/pdf iseason/docusaurus-to-pdf -u https://neige7.github.io/Banker-Wiki/en/intro --output pdf/Banker-Wiki-English.pdf - # 上传PDF - - name: Capture Build Artifacts - uses: actions/upload-artifact@v3 - with: - name: Artifacts - path: pdf/ - if-no-files-found: error - # Release - release: - needs: [ pdf ] - runs-on: ubuntu-latest - steps: - # 拉取代码 - - name: Checkout Repository - uses: actions/checkout@v2 - # 下载本体 - - name: Download Content - uses: actions/download-artifact@v2 - with: - name: Artifacts - # 获取序号 - - name: Get Project version - id: get_version - run: | - echo "Project version: $GITHUB_RUN_NUMBER" - echo "::set-output name=project_version::$GITHUB_RUN_NUMBER" - env: - project_version: ${{ steps.get_version.outputs.project_version }} - # 创建release - - name: Create Release - id: create-new-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.get_version.outputs.project_version }} - release_name: Auto Release ${{ steps.get_version.outputs.project_version }} - # 向release上传Banker-Wiki.pdf - - name: Upload PDF file to Release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-new-release.outputs.upload_url }} - asset_path: Folia-Tutorials.pdf - asset_name: Folia-Tutorials.pdf - asset_content_type: application/zip + +# # 自动生成PDF +# pdf: +# needs: [ gitpage ] +# runs-on: ubuntu-latest +# steps: +# # 拉取代码 +# - name: Checkout +# uses: actions/checkout@master +# with: +# persist-credentials: false +# # 睡会儿, 等GitPage部署完成 +# - name: Sleep for 120 seconds +# run: sleep 120s +# shell: bash +# # 生成PDF +# - name: Build PDF +# run: sudo docker run --rm -v ${{ github.workspace }}/pdf:/app/pdf iseason/docusaurus-to-pdf -u https://postyizhan.github.io/Dumb_Service_Guide/intro --output pdf/Folia-Tutorials.pdf +# # 生成英文PDF +# # - name: Build English PDF +# # run: sudo docker run --rm -v ${{ github.workspace }}/pdf:/app/pdf iseason/docusaurus-to-pdf -u https://neige7.github.io/Banker-Wiki/en/intro --output pdf/Banker-Wiki-English.pdf +# # 上传PDF +# - name: Capture Build Artifacts +# uses: actions/upload-artifact@v3 +# with: +# name: Artifacts +# path: pdf/ +# if-no-files-found: error +# # Release +# release: +# needs: [ pdf ] +# runs-on: ubuntu-latest +# steps: +# # 拉取代码 +# - name: Checkout Repository +# uses: actions/checkout@v2 +# # 下载本体 +# - name: Download Content +# uses: actions/download-artifact@v2 +# with: +# name: Artifacts +# # 获取序号 +# - name: Get Project version +# id: get_version +# run: | +# echo "Project version: $GITHUB_RUN_NUMBER" +# echo "::set-output name=project_version::$GITHUB_RUN_NUMBER" +# env: +# project_version: ${{ steps.get_version.outputs.project_version }} +# # 创建release +# - name: Create Release +# id: create-new-release +# uses: actions/create-release@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# tag_name: ${{ steps.get_version.outputs.project_version }} +# release_name: Auto Release ${{ steps.get_version.outputs.project_version }} +# # 向release上传Banker-Wiki.pdf +# - name: Upload PDF file to Release +# uses: actions/upload-release-asset@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.create-new-release.outputs.upload_url }} +# asset_path: Folia-Tutorials.pdf +# asset_name: Folia-Tutorials.pdf +# asset_content_type: application/zip + # 向release上传Banker-Wiki-English.pdf # - name: Upload PDF file to Release # uses: actions/upload-release-asset@v1