Skip to content

Commit

Permalink
Add PGXN release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jan 25, 2024
1 parent 21f2297 commit 559dc04
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
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 <[email protected]>"
],
"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"
]
}

0 comments on commit 559dc04

Please sign in to comment.