release: pg_idkit 0.2.3 #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
branches: | |
# Run on auto-generated release PRs | |
- 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]+ | |
jobs: | |
build-rpm: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
config: | |
- pgrx: | |
pg-version: pg15 | |
pg: | |
version: 15.5 | |
- pgrx: | |
pg-version: pg16 | |
pg: | |
version: 16.2 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the RPM (reuse workflow) | |
uses: ./.github/workflows/build-rpm | |
with: | |
artifact-upload: true | |
pgrx-pg-version: ${{ matrix.config.pgrx.pg-version }} | |
pg-version: ${{ matrix.config.pg.version }} | |
build-zip-gnu: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/vadosware/pg_idkit/builder-gnu:0.1.x | |
strategy: | |
matrix: | |
config: | |
- pgrx: | |
pg-version: pg15 | |
pg: | |
version: 15.5 | |
- pgrx: | |
pg-version: pg16 | |
pg: | |
version: 16.2 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the package (reuse workflow) | |
uses: ./.github/workflows/build-and-test-gnu | |
with: | |
artifact-upload: true | |
artifact-tarball-suffix: "-${{ matrix.config.pgrx.pg-version }}-gnu" | |
pgrx-pg-version: ${{ matrix.config.pgrx.pg-version }} | |
pg-version: ${{ matrix.config.pg.version }} | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
needs: | |
- build-rpm | |
- build-zip-gnu | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v3 | |
# Download all artifacts | |
- uses: actions/download-artifact@v3 | |
with: | |
path: artifacts | |
# Create release (pre-release if we're prepping) | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: ${{ startsWith(github.ref, 'refs/heads/prep-release') }} | |
draft: ${{ startsWith(github.ref, 'refs/heads/prep-release') }} | |
# 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 | |
files: | | |
./artifacts/*/* |