Skip to content

Commit

Permalink
Build release notes as markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AndydeCleyre committed Nov 25, 2023
1 parent 73b0d4d commit d8592a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/buildpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,17 @@ jobs:
printf '%s\n' "${RUNNER_TEMP}/dist/"
ls -lh "${RUNNER_TEMP}/dist/"
- name: make release notes
run: |
printf '%s\n' '`vars.nt`:' '```yaml' >release.md
cat vars.nt >>release.md
printf '%s\n' '```' '`private-build-plans.toml`:' '```toml' >>release.md
cat private-build-plans.toml >>release.md
printf '%s\n' '```' >>release.md
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ runner.temp }}/dist/*
fail_on_unmatched_files: true
body_path: vars.nt
body_path: release.md
10 changes: 9 additions & 1 deletion templates/buildpkg.yml.wz
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,17 @@ jobs:
ls -lh "${RUNNER_TEMP}/dist/"

@end
- name: make release notes
run: |
printf '%s\n' '`vars.nt`:' '```yaml' >release.md
cat vars.nt >>release.md
printf '%s\n' '```' '`private-build-plans.toml`:' '```toml' >>release.md
cat private-build-plans.toml >>release.md
printf '%s\n' '```' >>release.md

- name: Release
uses: softprops/action-gh-release@@v1
with:
files: ${{ runner.temp }}/dist/*
fail_on_unmatched_files: true
body_path: vars.nt
body_path: release.md

0 comments on commit d8592a8

Please sign in to comment.