Skip to content

Commit a908b4c

Browse files
committed
Try to generate release notes for this specific branch.
Also try to cross-reference release page and build page.
1 parent ae7b318 commit a908b4c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,25 +367,30 @@ 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@v1
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.repositoryUrl }}/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.ref }}
384386
append_body: true
385-
# the only reason we generate a GH release is to post build products
386387
fail_on_unmatched_files: true
387388
files: |
388389
*.dmg
389390
*.exe
390391
*-autobuild-package.xml
391392
*-viewer_version.txt
393+
394+
- name: post release URL
395+
run: |
396+
echo "::notice::Release ${{ steps.release.outputs.url }}"

0 commit comments

Comments
 (0)