summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2021-06-17 13:37:20 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2021-06-17 13:37:20 +0100
commit7749898a949ca518a6aaa3eba5a48fa0e8bfc3ca (patch)
treeedda38a10e50377b7ba0837f1cfc564b796bf70d
parent46bc175cc732031f3fa5de924c714bf28d25c7e2 (diff)
downloadpsycopg2-7749898a949ca518a6aaa3eba5a48fa0e8bfc3ca.tar.gz
Drop script to update docs on travis
-rwxr-xr-xscripts/travis_update_docs.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/travis_update_docs.sh b/scripts/travis_update_docs.sh
deleted file mode 100755
index c45ccc8..0000000
--- a/scripts/travis_update_docs.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-# Trigger a rebuild of the psycopg.org website to update the documentation.
-# The script is meant to run by Travis CI.
-
-set -euo pipefail
-
-# The travis token can be set at https://github.com/psycopg/psycopg2/settings/secrets/actions
-# and can be set on a selected branch only (which should match the DOC_BRANCH
-# in the psycopg-website Makefile, or it won't refresh a thing).
-if [ -z "${TRAVIS_TOKEN:-}" ]; then
- echo "skipping docs update: travis token not set" >&2
- exit 0
-fi
-
-echo "triggering psycopg-website rebuild" >&2
-curl -s -X POST \
- -H "Content-Type: application/json" \
- -H "Accept: application/json" \
- -H "Travis-API-Version: 3" \
- -H "Authorization: token ${TRAVIS_TOKEN}" \
- -d "{\"request\": {\"branch\": \"${TRAVIS_BRANCH}\"}}" \
- https://api.travis-ci.com/repo/psycopg%2Fpsycopg-website/requests