Skip to content

Commit

Permalink
fix(ci): tar.gz packaging
Browse files Browse the repository at this point in the history
Signed-off-by: vados <[email protected]>
  • Loading branch information
t3hmrman committed Dec 11, 2023
1 parent f92f645 commit 831f466
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ secrets/docker/.token_seed.lock
secrets/docker/buildx/

# Releases
/pg_idkit-*.tar.gz
/pg_idkit-*.zip
/pkg
4 changes: 3 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ build-test-watch: _check-tool-cargo _check-tool-cargo-watch

package:
PGRX_IGNORE_RUST_VERSIONS=y {{cargo}} pgrx package --pg-config {{pkg_pg_config_path}}
{{tar}} -cvf pg_idkit-$(just print-version).tar.gz -C $({{just}} print-pkg-output-dir) *
mkdir -p pkg/pg_idkit-$({{just}} print-version)
cp -r $({{just}} print-pkg-output-dir)/* pkg/pg_idkit-$({{just}} print-version)
{{tar}} -C pkg -cvf pg_idkit-$(just print-version).tar.gz pg_idkit-$({{just}} print-version)

print-pkg-output-dir:
echo -n {{pgrx_pkg_output_dir}}
Expand Down

0 comments on commit 831f466

Please sign in to comment.