Skip to content

Commit 77b51cf

Browse files
Merge pull request #895 from secondlife/relnotes-w
Generate release notes from tag `release` to the built tag.
2 parents 563c35e + 27b298d commit 77b51cf

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -367,25 +367,31 @@ jobs:
367367
mv newview/viewer_version.txt macOS-viewer_version.txt
368368
369369
# forked from softprops/action-gh-release
370-
- uses: secondlife-3p/action-gh-release@v1
370+
- name: Create GitHub release
371+
id: release
372+
uses: secondlife-3p/action-gh-release@feat/add-generateReleaseNotes
371373
with:
372-
# name the release page for the build number so we can find it
373-
# easily (analogous to looking up a codeticket build page)
374-
name: "v${{ github.run_id }}"
374+
# name the release page for the branch
375+
name: "${{ needs.build.outputs.viewer_branch }}"
375376
# SL-20546: want the channel and version to be visible on the
376377
# release page
377378
body: |
379+
Build ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
378380
${{ needs.build.outputs.viewer_channel }}
379381
${{ needs.build.outputs.viewer_version }}
380-
${{ needs.build.outputs.viewer_branch }}
381382
${{ needs.build.outputs.relnotes }}
382383
prerelease: true
383384
generate_release_notes: true
385+
target_commitish: ${{ github.sha }}
386+
previous_tag: release
384387
append_body: true
385-
# the only reason we generate a GH release is to post build products
386388
fail_on_unmatched_files: true
387389
files: |
388390
*.dmg
389391
*.exe
390392
*-autobuild-package.xml
391393
*-viewer_version.txt
394+
395+
- name: post release URL
396+
run: |
397+
echo "::notice::Release ${{ steps.release.outputs.url }}"

0 commit comments

Comments
 (0)