From 559dc04bfb4a3dd1678c4941511bb2802b546685 Mon Sep 17 00:00:00 2001 From: "David E. Wheeler" Date: Thu, 25 Jan 2024 13:12:30 -0500 Subject: [PATCH] Add PGXN release workflow --- .gitattributes | 5 +++ .github/workflows/pgxn-release.yml | 21 ++++++++++++ META.json | 52 ++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 .gitattributes create mode 100644 .github/workflows/pgxn-release.yml create mode 100644 META.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..e74fc4e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +.clang-format export-ignore +.gitattributes export-ignore +.github export-ignore +.gitignore export-ignore +.gitmodules export-ignore diff --git a/.github/workflows/pgxn-release.yml b/.github/workflows/pgxn-release.yml new file mode 100644 index 0000000..1c8787f --- /dev/null +++ b/.github/workflows/pgxn-release.yml @@ -0,0 +1,21 @@ +name: 🚀 Release on PGXN +on: + push: + # Release on semantic version tag. + tags: ['v[0-9]+.[0-9]+.[0-9]+'] +jobs: + release: + name: Release on PGXN + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Bundle the Release + env: { GIT_ARCHIVE_CMD: archive-all } + run: pgxn-bundle + - name: Release on PGXN + env: + PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }} + PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }} + run: pgxn-release diff --git a/META.json b/META.json new file mode 100644 index 0000000..1d3cc44 --- /dev/null +++ b/META.json @@ -0,0 +1,52 @@ +{ + "name": "pljs", + "abstract": "PL/JS trusted procedural language", + "description": "PLJS is a QuickJS-based Javascript Language Extension for \"modern\" PostgreSQL. It is compact, lightweight, and decently fast.", + "version": "0.8.0", + "maintainer": [ + "Jerry Sievert " + ], + "license": { + "PostgreSQL": "http://www.postgresql.org/about/licence" + }, + "release_status": "stable", + "prereqs": { + "runtime": { + "requires": { + "PostgreSQL": "14.0.0" + } + } + }, + "provides": { + "pljs": { + "file": "pljs--0.8.0.sql", + "docfile": "README.md", + "version": "0.8.0", + "abstract": "PL/JS trusted procedural language" + } + }, + "no_index": { + "directory": [ "deps" ] + }, + "resources": { + "homepage": "https://github.com/plv8/pljs", + "bugtracker": { + "web": "https://github.com/plv8/pljs/issues" + }, + "repository": { + "url": "https://github.com/plv8/pljs", + "web": "https://github.com/plv8/pljs.git", + "type": "git" + } + }, + "meta-spec": { + "version": "1.0.0", + "url": "http://pgxn.org/meta/spec.txt" + }, + "tags": [ + "PL", + "JavaScript", + "QuickJS", + "pljs" + ] +} \ No newline at end of file