From 853fd39d422f3d34a9274d9de4f5d7fc88cf572f Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Sun, 2 Jan 2022 16:39:36 +0000 Subject: [PATCH] add webmention pull to drone --- .drone.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.drone.yml b/.drone.yml index ddb4c3e..5724093 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,6 +2,26 @@ kind: pipeline name: update_website steps: + - name: fetch_webmentions + image: python:3.7 + when: + branch: + - main + commands: + - pip install poetry + - cd bstools && poetry install && cd ../ + - python bstools/bstools.py fetch-mentions --mentions-file ./brainsteam/data/mentions.json + + - name: store_webmentions + image: appleboy/drone-git-push + settings: + remote_name: origin + branch: main + local_ref: main + commit: true + commit_message: Commit latest webmentions + author_name: DroneCI + - name: hugo_build image: alombarte/hugo when: