diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index e37cf52..9e8d28d 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -66,9 +66,12 @@ jobs: # Manually source the Kusion environment variables. source "$HOME/.kusion/.env" + # Get the current absolute path. + current_abs_path=$(pwd) + # Push modules to the GitHub Packages. for dir in ${dirs_changed[@]}; do - cd $dir + cd "$current_abs_path/$dir" kusion mod push . oci://ghcr.io/kusionstack --os-arch=darwin/amd64 --creds $PACKAGE_TOKEN --latest=true kusion mod push . oci://ghcr.io/kusionstack --os-arch=darwin/arm64 --creds $PACKAGE_TOKEN --latest=true kusion mod push . oci://ghcr.io/kusionstack --os-arch=linux/amd64 --creds $PACKAGE_TOKEN --latest=true diff --git a/modules/mysql/kcl.mod b/modules/mysql/kcl.mod index 418e938..c326365 100644 --- a/modules/mysql/kcl.mod +++ b/modules/mysql/kcl.mod @@ -1,3 +1,4 @@ [package] name = "mysql" version = "0.2.0" + diff --git a/modules/network/kcl.mod b/modules/network/kcl.mod index bc6ae84..d08b9b3 100644 --- a/modules/network/kcl.mod +++ b/modules/network/kcl.mod @@ -1,3 +1,4 @@ [package] name = "network" version = "0.2.0" + diff --git a/modules/postgres/kcl.mod b/modules/postgres/kcl.mod index 9b54640..6e9c74d 100644 --- a/modules/postgres/kcl.mod +++ b/modules/postgres/kcl.mod @@ -1,3 +1,4 @@ [package] name = "postgres" version = "0.2.0" +