From 831f466fd899d67a0b455c473cf886028d7291e9 Mon Sep 17 00:00:00 2001 From: vados Date: Mon, 11 Dec 2023 17:44:19 +0900 Subject: [PATCH] fix(ci): tar.gz packaging Signed-off-by: vados --- .gitignore | 3 +-- Justfile | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1f50e98..77ca15a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,4 @@ secrets/docker/.token_seed.lock secrets/docker/buildx/ # Releases -/pg_idkit-*.tar.gz -/pg_idkit-*.zip +/pkg diff --git a/Justfile b/Justfile index fee502f..6a24f8f 100644 --- a/Justfile +++ b/Justfile @@ -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}}