Skip to content

Commit

Permalink
fix: upload.yml for actions to upload modules (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 authored Jun 6, 2024
1 parent dc54670 commit 880ccb2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions modules/mysql/kcl.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[package]
name = "mysql"
version = "0.2.0"

1 change: 1 addition & 0 deletions modules/network/kcl.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[package]
name = "network"
version = "0.2.0"

1 change: 1 addition & 0 deletions modules/postgres/kcl.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[package]
name = "postgres"
version = "0.2.0"

0 comments on commit 880ccb2

Please sign in to comment.