Skip to content

Commit

Permalink
Add workflow to release on GitHub/PGXN
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Vondra committed Dec 22, 2024
1 parent c52ea23 commit 04f81a4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04f81a4

Please sign in to comment.