nyurik/Setup PostgreSQL and PostGIS for Linux/macOS/Windows

Setup PostgreSQL server and install PostGIS extension.

View on GitHub

Trust Signals

Scorecard Score
Scorecard 2–4scored Jul 6, 2026
Maintenance Recency
Activelast commit Mar 15, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: nyurik/action-setup-postgis@e54fc643200ee809b4711c3f537c433dfbeba056 # v2.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
usernameThe username of the user to setup.nopostgres
passwordThe password of the user to setup.nopostgres
databaseThe database name to setup and grant permissions to created user.nopostgres
portThe server port to listen on.no5432
postgres-versionThe version of PostgreSQL to install.no17
postgis_versionThe version of PostGIS to install.no""
cached-dirWhere should the temporary downloads be placed. Used to download and cache PostGIS binary.nodownloads
namedescription
connection-uriThe connection URI to connect to PostgreSQL.
service-nameThe service name with connection parameters.