Merge remote-tracking branch 'origin/dev' into pr/antonreshetov/280

This commit is contained in:
zernonia 2024-01-17 13:27:40 +08:00
commit 513af8cda4

View File

@ -60,25 +60,30 @@ jobs:
# Run a action to publish docs
- name: Publish to Cloudflare Pages
uses: unlike-ltd/github-actions-cloudflare-pages@v1.1.2
uses: zernonia/cloudflare-pages-action@v0.0.6
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: shadcn-vue
directory: .vitepress/dist
# 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: refs/pull/${{ github.event.number }}/merge
# Optional: Change the working directory
workingDirectory: apps/www
wranglerVersion: '3'
- name: Remove label
if: ${{ github.event_name == 'pull_request_target' && contains(github.event.label.name, '🚀request-deploy') }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: ${{ github.event.pull_request.head.ref }}
# uses: cloudflare/pages-action@v1.5.0
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# projectName: shadcn-vue
# directory: .vitepress/dist
# # 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: refs/pull/${{ github.event.number }}/merge
# # Optional: Change the working directory
# workingDirectory: apps/www
# wranglerVersion: '3'
script: |
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ['🚀request-deploy']
})