Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Postgres Extensions & Tools on PGXN

⚖️ PostgreSQL 🎬 Action 🧪 Test

This action bundles and publishes a releae of a PostgreSQL extension or tool on PGXN.

Example workflow:

name: 🚀 Release
permissions:
  contents: write
on:
  push:
jobs:
  release:
    name: Release on PGXN
    runs-on: ubuntu-latest
    steps:
      - name: Check out the repo
        uses: actions/checkout@v7
      - name: Release on PGXN
        uses: pgxn/release-action@v0
        with:
          username: ${{ secrets.PGXN_USERNAME }}
          password: ${{ secrets.PGXN_PASSWORD }}
          dry-run: ${{ startsWith( github.ref, 'refs/tags/v' ) }}

We strongly recommend using workflow secrets to manage your PGXN username and password.

Input Parameters

This action takes the following parameters:

Key Type Default Description
username string "" PGXN username
password string "" PGXN password
submodules boolean false To include Git submodules in the release
archive-options string "" Additional optoins to pass to git archive
dry-run boolean false Print the release command, rather than execute it

Output

This action emits a single output, archive, which contains the name of the zip archive file it created uploaded to PGXN. Use it for other releases in subsequent steps, for example to make a GitHub release:

name: 🚀 Release
permissions:
  contents: write
on:
  push:
jobs:
  release:
    name: Release on PGXN
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: pgxn/release-action@v0
        id: pgxn
        with:
          username: ${{ secrets.PGXN_USERNAME }}
          password: ${{ secrets.PGXN_PASSWORD }}
          dry-run: ${{ !startsWith( github.ref, 'refs/tags/v' ) }}
      - name: Create GitHub Release
        uses: softprops/action-gh-release@v2
        if: startsWith( github.ref, 'refs/tags/v' )
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          name: "Release ${{ github.ref_name }}"
          files: ${{ steps.pgxn.outputs.archive }}

Prior Art/Inspirations

  • pgxn-tools: Old PGXN Linux/amd64-only OCI image for testing and releasing extensions

About

Release a source code package on PGXN

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors