constellation/.github/actions/upload_terraform_module/action.yml
Adrian Stobbe 37580009fe
terraform-provider: cleanup and improve docs (#2685)
Co-authored-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
2023-12-14 15:47:55 +01:00

27 lines
706 B
YAML

name: Upload Terraform infrastructure module
description: "Upload the Terraform infrastructure module as an artifact."
runs:
using: "composite"
steps:
- name: Copy Terraform module
shell: bash
run: |
cp -r terraform/infrastructure terraform-module
- name: Zip terraform dir
shell: bash
run: |
zip -r terraform-module.zip terraform-module
- name: Upload artifact
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3
with:
name: terraform-module
path: terraform-module.zip
- name: Cleanup Terraform module dir
shell: bash
run: |
rm -r terraform-module terraform-module.zip