Skip to content

Commit

Permalink
release: pg_idkit 0.2.3
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
t3hmrman committed Mar 7, 2024
1 parent fca2020 commit e367848
Show file tree
Hide file tree
Showing 16 changed files with 428 additions and 284 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test-gnu/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ inputs:
type: string
default: 16.2
decription: |
Postgres version (ex. '15.5, '16.2')
Postgres version (ex. '15.6, '16.2')
outputs: {}
runs:
using: "composite"
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-rpm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ inputs:
type: string
default: 16.2
decription: |
Postgres version (ex. '15.5, '16.2')
Postgres version (ex. '15.6, '16.2')
cargo-pgrx-version:
type: string
default: 0.11.3
decription: |
cargo-pgrx version (ex. '0.11.3')
user:
type: string
default: runner
Expand All @@ -51,7 +56,7 @@ runs:
- name: Install Rust deps
uses: taiki-e/install-action@v2
with:
tool: cargo-get,just,cargo-generate-rpm,cargo-pgrx@0.11.0
tool: cargo-get,just,cargo-generate-rpm,cargo-pgrx@${{ inputs.cargo-pgrx-version }}

- name: Initialize cargo-pgrx
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runner: ubuntu-22.04
container:
arch: amd64
pg_version: 15.5
pg_version: 15.6
os_version: alpine3.18
- triple: x86_64-unknown-linux-musl
gh:
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
name: release

on:
workflow_dispatch:
inputs:
version:
description: Version to release (ex. `0.1.0`)
required: false
type: string

push:
branches:
- main
# Run on auto-generated release PRs
- prep-release-v[0-9]+\.[0-9]+\.[0-9]+
- 'prep-release-v[0-9]+\.[0-9]+\.[0-9]+'
tags:
# Run on released tags (created by automated post-merge release-tagging), to generate the actual release
- v[0-9]+\.[0-9]+\.[0-9]+
- 'v[0-9]+\.[0-9]+\.[0-9]+'

jobs:
build-rpm:
Expand All @@ -18,7 +26,7 @@ jobs:
- pgrx:
pg-version: pg15
pg:
version: 15.5
version: 15.6
- pgrx:
pg-version: pg16
pg:
Expand All @@ -43,7 +51,7 @@ jobs:
- pgrx:
pg-version: pg15
pg:
version: 15.5
version: 15.6
- pgrx:
pg-version: pg16
pg:
Expand Down Expand Up @@ -81,6 +89,7 @@ jobs:
with:
prerelease: ${{ startsWith(github.ref, 'refs/heads/prep-release') }}
draft: ${{ startsWith(github.ref, 'refs/heads/prep-release') }}
tag_name: {{ github.ref || inputs.version }}
# NOTE: while we have the CHANGELOG file, it always contains *all* changes,
# so we will use the generated GitHub commits for now
generate_release_notes: true
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: tag-release

on:
workflow_dispatch:
pull_request:
closed:
types:
- closed
branches:
- 'prep-release-**'

jobs:
## Tag a release (if the commit looks like one)
tag-release:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'release:')
permissions:
contents: write
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged }}
steps:
# Checkout the repository
- uses: actions/checkout@v3
Expand All @@ -25,7 +27,7 @@ jobs:
with:
tool: just,cargo-get

- name: Push new tag
- name: Create and push new tag
run: |
git tag v$(just print-version);
git push --follow-tags;
git push https://${{ secrets.RELEASE_PR_PAT }}@github.com/vadosware/pg_idkit.git --tags
20 changes: 20 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.2.3] - 2024-03-06

### Bug Fixes

- Release tagging upon merge
- Use --locked for cargo install
- Use zsh for better cross-platform support
- More zsh usage
- Use builder-gnu image from CI
- Cross platform shell usage by platform

### Features

- Require superuser in pg_idkit.control ("Ability to install the extension for non-root users")

### Miscellaneous Tasks

- Update Rust to 1.76.0
- Update postgres 16 to v16.2

## [0.2.2] - 2024-01-30

### Bug Fixes
Expand Down
Loading

0 comments on commit e367848

Please sign in to comment.