File tree Expand file tree Collapse file tree 4 files changed +9
-16
lines changed
Expand file tree Collapse file tree 4 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 1111 - name : Checkout repository
1212 uses : actions/checkout@v4
1313
14- - name : Bundle the release
14+ - name : Prepare the release
1515 run : make prepare
1616
1717 - name : Install dbdev CLI
4848 run : make prepare
4949
5050 - name : Bundle the release
51+ env :
52+ GIT_BUNDLE_OPTS : >-
53+ --add-file META.json
54+ --add-file pg_dispatch--*.sql
5155 run : pgxn-bundle
5256
5357 - name : Publish to PGXN
8791 echo "should_release=true" >> $GITHUB_OUTPUT
8892 fi
8993
90- - name : Bundle the release
91- if : ${{ steps.version_check.outputs.should_release == 'true' }}
92- run : make dist
93-
9494 - name : Generate changelog
9595 id : changelog
9696 if : ${{ steps.version_check.outputs.should_release == 'true' }}
@@ -164,5 +164,4 @@ jobs:
164164 - [PGXN](https://pgxn.org/dist/pg_dispatch)
165165
166166 ## Changes
167- ${{ steps.changelog.outputs.changelog }}
168- files : dist/pg_dispatch-${{ steps.version.outputs.version }}.zip
167+ ${{ steps.changelog.outputs.changelog }}
Original file line number Diff line number Diff line change 11# Ignore build artifacts
2- dist /
32META.json
43pg_dispatch-- * .sql
Original file line number Diff line number Diff line change @@ -6,18 +6,13 @@ PG_CONFIG ?= pg_config
66PGXS := $(shell $(PG_CONFIG ) --pgxs)
77include $(PGXS )
88
9- .PHONY : prepare dist docs test
9+ .PHONY : prepare docs test
1010prepare :
11+ make clean
1112 cp pg_dispatch.sql $(EXTENSION ) --$(EXTVERSION ) .sql
1213 sed ' s/@VERSION@/$(EXTVERSION)/g' META.json.in > META.json
1314
14- dist :
15- make prepare
16- mkdir -p dist
17- git archive --format zip --prefix=$(EXTENSION ) -$(EXTVERSION ) / -o dist/$(EXTENSION ) -$(EXTVERSION ) .zip HEAD
18-
1915clean :
20- rm -rf dist/
2116 rm -f META.json
2217 rm -f $(EXTENSION ) --* .sql
2318
Original file line number Diff line number Diff line change 11# Ref: https://www.postgresql.org/docs/current/extend-extensions.html#EXTEND-EXTENSIONS-FILES
22
33comment = 'Asynchronous SQL dispatcher'
4- default_version = '0.1.4 '
4+ default_version = '0.1.5 '
55relocatable = false
66requires = 'pgcrypto, pg_cron'
77superuser = false
You can’t perform that action at this time.
0 commit comments