Skip to content

Commit 0811e3a

Browse files
committed
updates
1 parent 36b2389 commit 0811e3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎.github/workflows/build-and-deploy.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ jobs:
4040
bundle install --jobs=3 --retry=3
4141
bundle clean --force
4242
43-
- name: Make scripts executable
44-
run: chmod +x ./script/*
45-
4643
- name: Run cron build (Algolia)
4744
if: github.event_name == 'schedule'
4845
run: |
@@ -55,6 +52,7 @@ jobs:
5552
shell: bash
5653

5754
- name: Deploy to S3
55+
if: github.event_name != 'schedule'
5856
uses: reggionick/s3-deploy@v4
5957
with:
6058
folder: _site
@@ -68,6 +66,7 @@ jobs:
6866
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6967

7068
- name: Purge Cloudflare cache
69+
if: github.event_name != 'schedule'
7170
run: |
7271
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/2fa02b93146397fbf2001d812ab8b31f/purge_cache" \
7372
-H "X-Auth-Email: ${{ secrets.CLOUD_FLARE_EMAIL }}" \
@@ -76,6 +75,7 @@ jobs:
7675
--data '{"purge_everything":true}'
7776
7877
- name: Ping search engines and Internet Archive
78+
if: github.event_name != 'schedule'
7979
run: |
8080
curl https://www.google.com/webmasters/tools/ping?sitemap=https://whatthefuckjusthappenedtoday.com/sitemap.xml
8181
curl http://www.bing.com/ping?sitemap=https://whatthefuckjusthappenedtoday.com/sitemap.xml

0 commit comments

Comments
 (0)