Skip to content

Commit

Permalink
Run deploy in our repo only
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Sep 25, 2024
1 parent f4757a6 commit c5bc9e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ jobs:
echo "User-Agent: *\nDisallow: /" > build/robots.txt
- name: Install Wrangler
if: github.repository == 'AdguardTeam/KnowledgeBase'
run: npm install -g wrangler

- name: Deploy to Cloudflare Pages
if: github.repository == 'AdguardTeam/KnowledgeBase'
run: npx wrangler pages deploy ./build --project-name="${{ env.PAGES_PROJECT }}" --branch ${{ env.BRANCH_NAME }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_WORKERS_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_WORKERS_ACCOUNT_ID }}

- name: Add comment to Pull Request
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.repository == 'AdguardTeam/KnowledgeBase'
uses: actions/github-script@v6
with:
script: |
Expand Down

0 comments on commit c5bc9e5

Please sign in to comment.