Skip to content

Commit 074b9f4

Browse files
authored
Update release.yml (#43)
1 parent 1c24396 commit 074b9f4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,20 @@ jobs:
4141
export checksum=$(sha256sum sqlc-gen-better-python.wasm | awk '{print $1}')
4242
export download_url="https://github.com/rayakame/sqlc-gen-better-python/releases/download/${{ steps.latest.outputs.output }}/sqlc-gen-better-python.wasm"
4343
44-
yq -i '.plugins[0].wasm.url = env(download_url)' .github/release_output_template.yaml
45-
yq -i '.plugins[0].wasm.sha256 = env(checksum)' .github/release_output_template.yaml
46-
47-
cat .changes/${{ steps.latest.outputs.output }}.md > release_body.md
44+
# Create the release body with the warning message at the top
45+
echo "> [!WARNING] \n> Every Release before \`v1.0.0\`, including this one is an **early alpha release**. Currently, there is 0% test coverage and these versions are only released for interested people who want to test this plugin and help make it better." > release_body.md
46+
47+
# Add the release changelog and YAML content below the warning message
48+
cat .changes/${{ steps.latest.outputs.output }}.md >> release_body.md
4849
echo "\`\`\`yaml" >> release_body.md
4950
cat .github/release_output_template.yaml >> release_body.md
5051
echo "\`\`\`" >> release_body.md
5152
53+
5254
- name: Create release
5355
uses: softprops/action-gh-release@v2
5456
with:
5557
name: "${{ steps.latest.outputs.output }}"
5658
tag_name: "refs/tags/${{ steps.latest.outputs.output }}"
5759
body_path: release_body.md
58-
files: sqlc-gen-better-python.wasm
60+
files: sqlc-gen-better-python.wasm

0 commit comments

Comments
 (0)