From d83d202b9c5f300b4a4d437c3912d1129a663131 Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Thu, 11 Jul 2024 16:41:03 +0200 Subject: [PATCH] PGXN integration (#470) * Update PGXN META.json * Temorary disable all workflows * Add PGXN release workflow draft * Add pull request trigger * Install dependencies * Add sudo * More sudo * Try older ubuntu version * Try * Once again * Update PGXN workflow * Revert "Temorary disable all workflows" This reverts commit 8d15520a51e400720c5f5dc49bae29caa6533dfc. * Use ubunut 22.04 --- .github/workflows/pgxn-release.yml | 29 +++++++++++++++++++++++++++++ META.json | 9 +++++---- 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/pgxn-release.yml diff --git a/.github/workflows/pgxn-release.yml b/.github/workflows/pgxn-release.yml new file mode 100644 index 00000000..c22d4960 --- /dev/null +++ b/.github/workflows/pgxn-release.yml @@ -0,0 +1,29 @@ +name: PGXN +on: + workflow_dispatch: + inputs: + version: + description: 'Version to release' + required: true + type: string + +jobs: + release: + name: Release + runs-on: ubuntu-22.04 + container: pgxn/pgxn-tools + steps: + - name: Validate version tag + run: '[[ ${{ inputs.version }} =~ ^[0-9]+.[0-9]+.[0-9]+ ]]' + - name: Check out + uses: actions/checkout@v4 + with: + ref: '${{ inputs.version }}' + - name: Bundle + id: bundle + run: pgxn-bundle + # - name: Upload + # env: + # PGXN_USERNAME: percona + # PGXN_PASSWORD: ${{ secrets.PGXN_PERCONA }} + # run: pgxn-release diff --git a/META.json b/META.json index 7a223760..35280127 100644 --- a/META.json +++ b/META.json @@ -4,7 +4,8 @@ "description": "pg_stat_monitor is a PostgreSQL Query Performance Monitoring tool, based on PostgreSQL's contrib module pg_stat_statements. PostgreSQL’s pg_stat_statements provides the basic statistics, which is sometimes not enough. The major shortcoming in pg_stat_statements is that it accumulates all the queries and their statistics and does not provide aggregated statistics nor histogram information. In this case, a user would need to calculate the aggregates, which is quite an expensive operation.", "version": "2.0.4", "maintainer": [ - "ibrar.ahmed@percona.com" + "artem.gavrilov@percona.com", + "diego.fronza@percona.com" ], "license": "postgresql", "provides": { @@ -23,9 +24,9 @@ } }, "resources": { - "homepage": "https://percona.github.io/pg_stat_monitor/", + "homepage": "https://github.com/percona/pg_stat_monitor", "bugtracker": { - "web": "https://jira.percona.com/projects/PG/issues" + "web": "https://perconadev.atlassian.net/jira/software/c/projects/PG/issues" }, "repository": { "url": "https://github.com/percona/pg_stat_monitor.git", @@ -33,7 +34,7 @@ "type": "git" } }, - "generated_by": "ibrar.ahmed@percona.com", + "generated_by": "artem.gavrilov@percona.com", "meta-spec": { "version": "1.0.0", "url": "http://pgxn.org/meta/spec.txt"