Merge remote-tracking branch 'origin/dev' into pr/antonreshetov/280
This commit is contained in:
commit
513af8cda4
37
.github/workflows/publish.yaml
vendored
37
.github/workflows/publish.yaml
vendored
|
|
@ -60,25 +60,30 @@ jobs:
|
||||||
|
|
||||||
# Run a action to publish docs
|
# Run a action to publish docs
|
||||||
- name: Publish to Cloudflare Pages
|
- name: Publish to Cloudflare Pages
|
||||||
uses: unlike-ltd/github-actions-cloudflare-pages@v1.1.2
|
uses: zernonia/cloudflare-pages-action@v0.0.6
|
||||||
with:
|
with:
|
||||||
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
cloudflare-project-name: shadcn-vue
|
cloudflare-project-name: shadcn-vue
|
||||||
directory: .vitepress/dist
|
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-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
github-environment: ${{ github.event.pull_request.head.ref }}
|
script: |
|
||||||
# uses: cloudflare/pages-action@v1.5.0
|
github.rest.issues.removeLabel({
|
||||||
# with:
|
issue_number: context.issue.number,
|
||||||
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
owner: context.repo.owner,
|
||||||
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
repo: context.repo.repo,
|
||||||
# projectName: shadcn-vue
|
name: ['🚀request-deploy']
|
||||||
# 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'
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user