Skip to content

Commit

Permalink
PGXN archive build.
Browse files Browse the repository at this point in the history
  • Loading branch information
arkhipov committed Mar 31, 2023
1 parent 25a4ace commit a8ea9d6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.sln export-ignore
*.vcx* export-ignore
.* export-ignore
32 changes: 32 additions & 0 deletions .github/workflows/build-pgxn-extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build PGXN Extension

on:
push:
tags:
- '*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Package extension
id: package
run: |
extension_name=$(grep -m 1 '"name":' META.json | sed -e 's/[[:space:]]*"name":[[:space:]]*"\([^"]*\)",/\1/')
extension_version=$(grep -m 1 '[[:space:]]\{8\}"version":' META.json | sed -e 's/[[:space:]]*"version":[[:space:]]*"\([^"]*\)",\{0,1\}/\1/')
echo "extension_name=$extension_name" >> $GITHUB_OUTPUT
echo "extension_version=$extension_version" >> $GITHUB_OUTPUT
git archive --format zip --prefix=$extension_name-$extension_version/ -o $extension_name-$extension_version.zip HEAD
- name: Deploy Artifacts
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: |
${{ steps.package.outputs.extension_name }}-${{ steps.package.outputs.extension_version }}.zip
1 change: 1 addition & 0 deletions .github/workflows/build-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,6 @@ jobs:
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
fail_on_unmatched_files: true
files: |
temporal_tables-pg${{ env.PG_VERSION }}-${{ matrix.platform }}.zip

0 comments on commit a8ea9d6

Please sign in to comment.