Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 64cc293

Browse files
authored
Revert docs CICD trigger on push to main instead of tag-based (#180)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent 808d233 commit 64cc293

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
paths:
88
- 'docs/**'
99
- '.github/workflows/docs.yml'
10-
tags: ["v[0-9]+.[0-9]+.[0-9]+-docs"]
1110
pull_request:
1211
branches:
1312
- main
@@ -75,13 +74,13 @@ jobs:
7574
Preview URL: ${{ steps.deployCloudflarePages.outputs.url }}
7675
7776
- name: Add Custome Domain file
78-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
77+
if: github.event_name == 'push' && github.event.pull_request.head.repo.full_name != github.repository
7978
run: echo "${{ vars.DOCUSAURUS_DOMAIN }}" > ./docs/build/CNAME
8079

8180
# Popular action to deploy to GitHub Pages:
8281
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
8382
- name: Deploy to GitHub Pages
84-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
83+
if: github.event_name == 'push' && github.event.pull_request.head.repo.full_name != github.repository
8584
uses: peaceiris/actions-gh-pages@v3
8685
with:
8786
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)