From 03b95d1017084a0196d663738adcd18f3a85d06d Mon Sep 17 00:00:00 2001 From: Anson Date: Tue, 10 Dec 2024 21:47:08 -0700 Subject: [PATCH] Start fighting the CI --- .gitlab-ci.yml | 16 ++++++++++++++++ output/2433b0850f38472a9dab36367deb89fc.txt | 1 + 2 files changed, 17 insertions(+) create mode 100644 output/2433b0850f38472a9dab36367deb89fc.txt 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