File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 3333 steps :
3434 - uses : actions/checkout@v4
3535
36+ - uses : cloudsmith-io/cloudsmith-cli-action@v1.0.3
37+
3638 - name : Fetch tags
3739 run : git fetch --prune --tags
3840
@@ -56,19 +58,29 @@ jobs:
5658 module_name=$(yq .module.name $module_path/.releaserc.yaml)
5759 module_version=$(yq .module.version $module_path/.releaserc.yaml)
5860
61+ echo "Packaging $module_name-$module_version"
62+
5963 tar \
64+ --exclude='.releaserc.yaml' \
6065 --exclude='.terraform' \
6166 --exclude='*.tfstate*' \
6267 --exclude='*_override.tf*' \
6368 -C $module_path \
6469 -czvf terraform-${module_name}-${module_version}.tar.gz .
6570
71+ echo "Publishing $module_name-$module_version"
72+
73+ cloudsmith push terraform \
74+ elastio/public \
75+ --api-key $CLOUDSMITH_API_KEY \
76+ --republish \
77+ terraform-${module_name}-${module_version}.tar.gz
6678
67- - name : release module
79+ - name : push tag
6880 if : steps.module-info.outputs.tag_exists == 'false'
6981 run : |
7082 module_name=${{ steps.module-info.outputs.module_name }}
7183 module_version=${{ steps.module-info.outputs.module_version }}
7284
73- # git tag $module_name-$module_version
85+ git tag $module_name-$module_version
7486 # git push origin $module_name-$module_version
You can’t perform that action at this time.
0 commit comments