Skip to content

Commit

Permalink
skip cloudflare deploy on cron trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 18, 2024
1 parent bfddea8 commit 6cae73b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ jobs:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

- name: Build for cloudflare
- name: Deploy on cloudflare
if: "!${{ github.event_name == 'schedule' }}"
run: |
sed -i 's|^const site_url\ =.*|const site_url\ =\ "https://pranab.pages.dev";|I' docusaurus.config.js
npm run build
- name: Deploy on cloudflare
run: |
COMMIT_HASH=$( git rev-parse --short HEAD )
cd ..
git config --global user.email "github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit 6cae73b

Please sign in to comment.