|
39 | 39 |
|
40 | 40 | - name: Upload binaries to release |
41 | 41 | uses: svenstaro/upload-release-action@v2 |
42 | | - if: startsWith(github.ref, 'refs/tags/v') |
| 42 | + if: startsWith(github.ref, 'refs/tags/v') && false |
43 | 43 | with: |
44 | 44 | repo_token: ${{ secrets.GITHUB_TOKEN }} |
45 | 45 | file: ./bash.sh |
|
55 | 55 | body: | |
56 | 56 | Release of bash.sh, a shellscript toolset and starting point, built from commit ${{ env.SHORT_SHA }}, is now available. |
57 | 57 |
|
| 58 | + - name: Create Release |
| 59 | + id: create_release |
| 60 | + uses: softprops/action-gh-release@v2.4.1 # pin to v2.2.1 to solve 422 error, see its issue #616 |
| 61 | + if: ${{ startsWith(github.ref, 'refs/tags/v') |
| 62 | + env: |
| 63 | + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 64 | + GITHUB_TOKEN: ${{ github.token }} |
| 65 | + with: |
| 66 | + generate_release_notes: true |
| 67 | + # discussion_category_name: Announcements |
| 68 | + # tag_name: ${{ github.ref }} |
| 69 | + tag_name: ${{ github.event.release.tag_name }} |
| 70 | + # release_name: Release ${{ github.ref }} |
| 71 | + draft: false |
| 72 | + prerelease: false |
| 73 | + append_body: true |
| 74 | + preserve_order: true |
| 75 | + # body_path: relnotes.md |
| 76 | + body: | |
| 77 | + Release of bash.sh, a shellscript toolset and starting point, built from commit ${{ env.SHORT_SHA }}, is now available. |
| 78 | +
|
| 79 | + ${{ github.event.head_commit.message }} |
| 80 | +
|
| 81 | + # body: | |
| 82 | + # This release was created by: ${{ github.event.sender.login }} |
| 83 | + # Release of ${{ github.ref }}, built from commit ${{ env.SHORT_SHA }}, is now available. |
| 84 | + # files: | |
| 85 | + # ./cmdr-*.* |
| 86 | + # build/*-*${{ matrix.config.build_type }}*-*.* |
| 87 | + # files: | |
| 88 | + # build/packages/*${{ matrix.config.artifact }} |
| 89 | + files: | |
| 90 | + ./bash.sh |
0 commit comments