Trigger docs update to the website build workflow on GitHub Action

This commit is contained in:
Daniele Varrazzo 2021-06-17 12:39:41 +01:00
parent dd9c6659bc
commit 46bc175cc7

View File

@ -3,16 +3,16 @@ name: Build documentation
on:
push:
branches:
# This should match the DOC_BRANCH value in the psycopg-website Makefile
- master
jobs:
docs:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Trigger docs build
run: ./scripts/travis_update_docs.sh
env:
TRAVIS_BRANCH: master
TRAVIS_TOKEN: ${{ secrets.TRAVIS_TOKEN }}
uses: peter-evans/repository-dispatch@v1
with:
repository: psycopg/psycopg-website
event-type: psycopg2-commit
token: ${{ secrets.ACCESS_TOKEN }}