diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4331eed..93f1d85 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - test - build_site - deploy + - notify variables: CARGO_HOME: "$CI_PROJECT_DIR/cargo" @@ -58,6 +59,21 @@ pages: rules: - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" +indexnow: + stage: notify + needs: + - deploy + script: + - | + curl -X POST "https://api.indexnow.org/indexnow" \ + -H "Content-Type: application/json" \ + -d '{ + "host": "https://zine.ansonbiggs.com", + "key": "2433b0850f38472a9dab36367deb89fc", + "urlList": ["https://zine.ansonbiggs.com", "https://zine.ansonbiggs.com/feed.xml"], + "keyLocation": "https://zine.ansonbiggs.com/2433b0850f38472a9dab36367deb89fc.txt" + }' + workflow: name: $CI_COMMIT_REF_NAME rules: diff --git a/output/2433b0850f38472a9dab36367deb89fc.txt b/output/2433b0850f38472a9dab36367deb89fc.txt new file mode 100644 index 0000000..48e0395 --- /dev/null +++ b/output/2433b0850f38472a9dab36367deb89fc.txt @@ -0,0 +1 @@ +2433b0850f38472a9dab36367deb89fc \ No newline at end of file