Skip to content

Commit fb8cb6d

Browse files
committed
chore: remove dist recipe
Signed-off-by: Snehil Shah <snehilshah.989@gmail.com>
1 parent 1d39913 commit fb8cb6d

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
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
@@ -48,6 +48,10 @@ jobs:
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
@@ -87,10 +91,6 @@ jobs:
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 }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# Ignore build artifacts
2-
dist/
32
META.json
43
pg_dispatch--*.sql

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,13 @@ PG_CONFIG ?= pg_config
66
PGXS := $(shell $(PG_CONFIG) --pgxs)
77
include $(PGXS)
88

9-
.PHONY: prepare dist docs test
9+
.PHONY: prepare docs test
1010
prepare:
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-
1915
clean:
20-
rm -rf dist/
2116
rm -f META.json
2217
rm -f $(EXTENSION)--*.sql
2318

pg_dispatch.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Ref: https://www.postgresql.org/docs/current/extend-extensions.html#EXTEND-EXTENSIONS-FILES
22

33
comment = 'Asynchronous SQL dispatcher'
4-
default_version = '0.1.4'
4+
default_version = '0.1.5'
55
relocatable = false
66
requires = 'pgcrypto, pg_cron'
77
superuser = false

0 commit comments

Comments
 (0)