Skip to content

Commit 10ff6fc

Browse files
committed
CI/CD: cloudflare docs won't production on other branch(main only),even if tag on main(you can't git checkout main)
1 parent f6ccd53 commit 10ff6fc

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/linuxdocs.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,13 @@ jobs:
4444
cmake --preset docs
4545
cmake --build build --target docs
4646
"
47-
- name: swith to main branch
48-
run: git checkout main
49-
50-
5147
- name: Deploy docs
5248
uses: cloudflare/wrangler-action@v3
5349
with:
5450
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
5551
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
56-
command: pages deploy build/docs/html --project-name=webpageprint
52+
environment: production
53+
command: pages deploy build/docs/html --project-name=webpageprint --branch=main
5754

5855
- name: deploy package
5956
run: |

0 commit comments

Comments
 (0)