Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,30 @@ jobs:
name: metadata.json
path: ${{ steps.generate-metadata-file.outputs.filepath }}

# This job uploads an Actions artifact named terraform-registry-manifest.json.zip.
# The artifact contains a single file with a filename that Terraform Registry expects
# (example: terraform-provider-cloudinit_2.3.6-alpha1.json) and contents identical
# to the terraform-registry-manifest.json file in the repository.
upload-terraform-registry-manifest-file:
needs: set-product-version
runs-on: ubuntu-latest
outputs:
filepath: ${{ steps.terraform-registry-manifest.outputs.filename }}
steps:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After we build confidence that this works, we can extract it to a reusable workflow. No need to copy/paste/maintain everywhere 😃

- name: "Checkout directory"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: ${{ env.PKG_NAME }}
- name: Build filename
id: terraform-registry-manifest
run: |
cp ${{ env.PKG_NAME }}/terraform-registry-manifest.json "${{ env.PKG_NAME }}_${{ needs.set-product-version.outputs.product-version }}.json"
echo "filename=${{ env.PKG_NAME }}_${{ needs.set-product-version.outputs.product-version }}.json" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: terraform-registry-manifest.json
path: ${{ steps.terraform-registry-manifest.outputs.filename }}

build-other:
needs:
- get-go-version
Expand Down
Loading