Skip to content

Add PGXN release workflow #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.clang-format export-ignore
.gitattributes export-ignore
.github export-ignore
.gitignore export-ignore
.gitmodules export-ignore
21 changes: 21 additions & 0 deletions .github/workflows/pgxn-release.yml
Original file line number Diff line number Diff line change
@@ -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
52 changes: 52 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
@@ -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 <code@legitimatesounding.com>"
],
"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"
]
}