mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 00:50:30 +00:00
test apidocs
This commit is contained in:
parent
2c13de2e03
commit
2d591b1295
2 changed files with 29 additions and 13 deletions
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
|
@ -118,18 +118,34 @@ jobs:
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Publish to Cloudflare Pages
|
- name: Prepare apidocs content
|
||||||
uses: cloudflare/pages-action@v1
|
run: |
|
||||||
with:
|
mkdir -p apidocs
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
cp -r apphub/apidocs/* apidocs/
|
||||||
accountId: eb79f13320db531d8cf1f3720966b695
|
|
||||||
projectName: doc-websoft9-com
|
- name: Compress apidocs content
|
||||||
directory: apphub/apidocs
|
run: |
|
||||||
# Optional: Enable this if you want to have GitHub Deployments triggered
|
zip -r apidocs.zip apidocs
|
||||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# Optional: Switch what branch you are publishing to.
|
- name: Deploy apidocs content to Cloudflare Pages Dev Environment
|
||||||
# By default this will be the branch which triggered this workflow
|
run: |
|
||||||
branch: dev
|
curl -X POST "https://api.cloudflare.com/client/v4/accounts/eb79f13320db531d8cf1f3720966b695/pages/projects/doc-websoft9-com/deployments" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
|
||||||
|
-F "file=@apidocs.zip" \
|
||||||
|
-F "branch=dev"
|
||||||
|
|
||||||
|
# - name: Publish to Cloudflare Pages
|
||||||
|
# uses: cloudflare/pages-action@v1
|
||||||
|
# with:
|
||||||
|
# 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: dev
|
||||||
pages:
|
pages:
|
||||||
name: Build Github Pages
|
name: Build Github Pages
|
||||||
permissions:
|
permissions:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.1.12-rc1",
|
"version": "2.1.12-rc2",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"portainer": "0.1.1",
|
"portainer": "0.1.1",
|
||||||
"nginx": "0.0.8",
|
"nginx": "0.0.8",
|
||||||
|
|
Loading…
Reference in a new issue