Skip to content

Commit 7a856ed

Browse files
committed
Add PGXN release workflow
1 parent 21f2297 commit 7a856ed

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

.gitattributes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.clang-format export-ignore
2+
.gitattributes export-ignore
3+
.github export-ignore
4+
.gitignore export-ignore
5+
.gitmodules export-ignore

.github/workflows/pgxn-release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 🚀 Release on PGXN
2+
on:
3+
push:
4+
# Release on semantic version tag.
5+
tags: ['v[0-9]+.[0-9]+.[0-9]+']
6+
jobs:
7+
release:
8+
name: Release on PGXN
9+
runs-on: ubuntu-latest
10+
container: pgxn/pgxn-tools
11+
steps:
12+
- name: Check out the repo
13+
uses: actions/checkout@v4
14+
- name: Bundle the Release
15+
env: { GIT_ARCHIVE_CMD: archive-all }
16+
run: pgxn-bundle
17+
- name: Release on PGXN
18+
env:
19+
PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }}
20+
PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }}
21+
run: pgxn-release

META.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "pljs",
3+
"abstract": "PL/JS trusted procedural language",
4+
"description": "PLJS is a QuickJS-based Javascript Language Extension for \"modern\" PostgreSQL. It is compact, lightweight, and decently fast.",
5+
"version": "0.8.0",
6+
"maintainer": [
7+
"Jerry Sievert <[email protected]>"
8+
],
9+
"license": {
10+
"PostgreSQL": "http://www.postgresql.org/about/licence"
11+
},
12+
"release_status": "stable",
13+
"prereqs": {
14+
"runtime": {
15+
"requires": {
16+
"PostgreSQL": "14.0"
17+
}
18+
}
19+
},
20+
"provides": {
21+
"pljs": {
22+
"file": "pljs--0.8.0.sql",
23+
"docfile": "README.md",
24+
"version": "0.8.0",
25+
"abstract": "PL/JS trusted procedural language"
26+
}
27+
},
28+
"no_index": {
29+
"directory": [ "deps" ]
30+
},
31+
"resources": {
32+
"homepage": "https://github.com/plv8/pljs",
33+
"bugtracker": {
34+
"web": "https://github.com/plv8/pljs/issues"
35+
},
36+
"repository": {
37+
"url": "https://github.com/plv8/pljs",
38+
"web": "https://github.com/plv8/pljs.git",
39+
"type": "git"
40+
}
41+
},
42+
"meta-spec": {
43+
"version": "1.0.0",
44+
"url": "http://pgxn.org/meta/spec.txt"
45+
},
46+
"tags": [
47+
"PL",
48+
"JavaScript",
49+
"QuickJS",
50+
"pljs"
51+
]
52+
}

0 commit comments

Comments
 (0)