Skip to content

Commit 7e6601f

Browse files
committed
archives
1 parent e36a2f9 commit 7e6601f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ jobs:
7474
-H "Content-Type: application/json" \
7575
--data '{"purge_everything":true}'
7676
77-
- name: Ping search engines
77+
- name: Ping search engines and Internet Archive
7878
run: |
7979
curl https://www.google.com/webmasters/tools/ping?sitemap=https://whatthefuckjusthappenedtoday.com/sitemap.xml
8080
curl http://www.bing.com/ping?sitemap=https://whatthefuckjusthappenedtoday.com/sitemap.xml
81+
curl https://web.archive.org/save/https://whatthefuckjusthappenedtoday.com
8182
8283
- name: Notify Slack
8384
if: always()
@@ -88,12 +89,4 @@ jobs:
8889
SLACK_ICON_EMOJI: ':newspaper:'
8990
SLACK_TITLE: GitHub Actions Build
9091
SLACK_COLOR: ${{ job.status == 'success' && '#36a64f' || '#ff0000' }}
91-
SLACK_MESSAGE: "${{ github.workflow }} #${{ github.run_number }} by ${{ github.actor }} - ${{ job.status }}"
92-
93-
archive-site:
94-
runs-on: ubuntu-latest
95-
if: github.event_name != 'schedule'
96-
steps:
97-
- name: Submit site to Internet Archive
98-
run: |
99-
curl https://web.archive.org/save/https://whatthefuckjusthappenedtoday.com
92+
SLACK_MESSAGE: "${{ github.workflow }} #${{ github.run_number }} by ${{ github.actor }} - ${{ job.status }}"

0 commit comments

Comments
 (0)