Update release.yml

This commit is contained in:
Darren 2024-08-26 11:58:28 +08:00 committed by GitHub
parent b9d1d1b58f
commit a2cb35c894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
uses: actions/deploy-pages@v3