Skip to content

Commit

Permalink
Include schema-embed in release artifacts (#1363)
Browse files Browse the repository at this point in the history
Upload to S3 and GH release so it's easily downloadable by systems like
the registry and give the option of not requiring it to be committed.

Stacked on #1362
  • Loading branch information
danielrbradley authored Feb 6, 2025
1 parent 8eda7e3 commit df6adfd
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ jobs:
path: dist
# Don't create a directory for each artifact
merge-multiple: true
- name: Download schema
uses: #{{ .Config.ActionVersions.DownloadArtifact }}#
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: dist
- name: Calculate checksums
working-directory: dist
run: shasum ./*.tar.gz > "pulumi-#{{ .Config.Provider }}#_${{ inputs.version }}_checksums.txt"
Expand Down
8 changes: 8 additions & 0 deletions provider-ci/test-providers/acme/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ jobs:
path: dist
# Don't create a directory for each artifact
merge-multiple: true
- name: Download schema
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: dist
- name: Calculate checksums
working-directory: dist
run: shasum ./*.tar.gz > "pulumi-acme_${{ inputs.version }}_checksums.txt"
Expand Down
8 changes: 8 additions & 0 deletions provider-ci/test-providers/aws/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ jobs:
path: dist
# Don't create a directory for each artifact
merge-multiple: true
- name: Download schema
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: dist
- name: Calculate checksums
working-directory: dist
run: shasum ./*.tar.gz > "pulumi-aws_${{ inputs.version }}_checksums.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ jobs:
path: dist
# Don't create a directory for each artifact
merge-multiple: true
- name: Download schema
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: dist
- name: Calculate checksums
working-directory: dist
run: shasum ./*.tar.gz > "pulumi-cloudflare_${{ inputs.version }}_checksums.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ jobs:
path: dist
# Don't create a directory for each artifact
merge-multiple: true
- name: Download schema
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: dist
- name: Calculate checksums
working-directory: dist
run: shasum ./*.tar.gz > "pulumi-docker_${{ inputs.version }}_checksums.txt"
Expand Down
8 changes: 8 additions & 0 deletions provider-ci/test-providers/eks/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ jobs:
path: dist
# Don't create a directory for each artifact
merge-multiple: true
- name: Download schema
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
# Use a pattern to avoid failing if the artifact doesn't exist
pattern: schema-embed.*
# Avoid creating directories for each artifact
merge-multiple: true
path: dist
- name: Calculate checksums
working-directory: dist
run: shasum ./*.tar.gz > "pulumi-eks_${{ inputs.version }}_checksums.txt"
Expand Down

0 comments on commit df6adfd

Please sign in to comment.