Skip to content

Commit 3e8275e

Browse files
committed
CCM-11751: Package and publish modules to Github on release cut
1 parent 6c8a856 commit 3e8275e

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release_created.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: Github Release Created
22

33
on:
4-
release:
5-
types: ["published"] # Inherits all input defaults
4+
# release:
5+
# types: ["published"] # Inherits all input defaults
6+
push:
7+
branch:
8+
- feature/CCM-11751_github_release_fix
69

710
concurrency:
811
group: ${{ github.workflow }}-${{ github.ref }}
@@ -25,11 +28,12 @@ jobs:
2528
run: |
2629
cd infrastructure/modules
2730
for module in */; do
31+
ls -al
2832
module_name=${module%/}
2933
echo "Zipping contents of $module_name..."
3034
(cd "$module_name" && zip -r "../../../artifacts/terraform-${module_name}.zip" .)
3135
echo "Publishing $module_name module..."
32-
gh release upload ${{ github.event.release.tag_name }} "../../artifacts/terraform-${module_name}.zip" --clobber
36+
gh release upload v2.0.20 "../../artifacts/terraform-${module_name}.zip" --clobber
3337
done
3438
env:
3539
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)