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: