1
0
mirror of https://gitlab.com/Anson-Projects/zine.git synced 2025-06-15 13:16:39 +00:00

Start fighting the CI

This commit is contained in:
Anson 2024-12-10 21:47:08 -07:00
parent b54d1d339d
commit 03b95d1017
2 changed files with 17 additions and 0 deletions

View File

@ -4,6 +4,7 @@ stages:
- test - test
- build_site - build_site
- deploy - deploy
- notify
variables: variables:
CARGO_HOME: "$CI_PROJECT_DIR/cargo" CARGO_HOME: "$CI_PROJECT_DIR/cargo"
@ -58,6 +59,21 @@ pages:
rules: rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" - 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: workflow:
name: $CI_COMMIT_REF_NAME name: $CI_COMMIT_REF_NAME
rules: rules:

View File

@ -0,0 +1 @@
2433b0850f38472a9dab36367deb89fc