From 04f81a41d263d5cd9eadc599320d50c78b4c69c7 Mon Sep 17 00:00:00 2001 From: Tomas Vondra Date: Sun, 22 Dec 2024 20:17:38 +0100 Subject: [PATCH] Add workflow to release on GitHub/PGXN --- .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b7aa668 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: Release +on: + push: + tags: [v*] +jobs: + release: + name: Release on GitHub and PGXN + runs-on: ubuntu-latest + container: pgxn/pgxn-tools + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PGXN_USERNAME: ${{ secrets.PGXN_USERNAME }} + PGXN_PASSWORD: ${{ secrets.PGXN_PASSWORD }} + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Install required packages + run: | + sudo apt-get update + sudo apt-get install -y libpq-dev + - name: Bundle the Release + id: bundle + run: pgxn-bundle + - name: Release on PGXN + run: pgxn-release + - name: Generate Release Changes + run: make latest-changes.md + - name: Create GitHub Release + id: release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body_path: latest-changes.md + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ steps.release.outputs.upload_url }} + asset_path: ./${{ steps.bundle.outputs.bundle }} + asset_name: ${{ steps.bundle.outputs.bundle }} + asset_content_type: application/zip diff --git a/README.md b/README.md index 9ec797e..d40cc61 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Sequential UUID generators ========================== [![make installcheck](https://github.com/tvondra/sequential-uuids/actions/workflows/ci.yml/badge.svg)](https://github.com/tvondra/sequential-uuids/actions/workflows/ci.yml) +[![PGXN version](https://badge.fury.io/pg/sequential_uuids.svg)](https://badge.fury.io/pg/sequential_uuids) This PostgreSQL extension implements two UUID generators with sequential patterns, which helps to reduce random I/O patterns associated with