From a2cb35c89448fe8bd658e04121f8995a0f564124 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Mon, 26 Aug 2024 11:58:28 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 840654da..47bf88e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,14 +118,20 @@ jobs: fi done - - name: Upload Websoft9 API to Azure - uses: bacongobbler/azure-blob-storage-upload@main + - name: Publish to Cloudflare Pages + uses: cloudflare/pages-action@v1 with: - source_dir: apphub/apidocs - container_name: $web - connection_string: ${{ secrets.Azure_blob }} - extra_args: '--destination-path ./apidocs' - overwrite: true + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: eb79f13320db531d8cf1f3720966b695 + projectName: doc-websoft9-com + directory: apphub/apidocs + # Optional: Enable this if you want to have GitHub Deployments triggered + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + # Optional: Switch what branch you are publishing to. + # By default this will be the branch which triggered this workflow + branch: main + # Optional: Change the working directory + workingDirectory: ./apidocs pages: name: Build Github Pages @@ -152,4 +158,4 @@ jobs: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 \ No newline at end of file + uses: actions/deploy-pages@v3