|
1 | | -# Copyright 2019 - 2020 Alexander Grund |
| 1 | +# Copyright 2019 - 2025 Alexander Grund |
2 | 2 | # Distributed under the Boost Software License, Version 1.0. |
3 | 3 | # https://www.boost.org/LICENSE_1_0.txt |
4 | 4 |
|
|
14 | 14 | release: |
15 | 15 | name: Create Release |
16 | 16 | runs-on: ubuntu-latest |
| 17 | + permissions: |
| 18 | + contents: write |
17 | 19 | env: |
18 | 20 | DEP_DIR: ${{github.workspace}}/dependencies |
19 | 21 | BOOST_VERSION: 1.66.0 |
@@ -80,46 +82,27 @@ jobs: |
80 | 82 | ctest --output-on-failure -C Debug --verbose |
81 | 83 | cmake --build . --config Debug --target install |
82 | 84 |
|
| 85 | + - name: Prepare release assets |
| 86 | + run: | |
| 87 | + mv nowide.tar.gz nowide_${{steps.get_tag.outputs.tag}}.tar.gz |
| 88 | + mv nowide_standalone.tar.gz nowide_standalone_${{steps.get_tag.outputs.tag}}.tar.gz |
| 89 | + mv documentation.tar.gz nowide_docu.tar.gz |
| 90 | +
|
83 | 91 | - name: Create Release |
84 | 92 | if: github.event_name == 'push' |
85 | | - id: create_release |
86 | | - uses: actions/create-release@v1 |
| 93 | + uses: softprops/action-gh-release@v2 |
87 | 94 | env: |
88 | 95 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
89 | 96 | with: |
90 | | - tag_name: ${{ github.ref }} |
91 | | - release_name: Release ${{ github.ref }} |
92 | 97 | body: | |
93 | 98 | UTF8-aware functions for Windows to make cross-platform easier |
94 | 99 | draft: false |
95 | 100 | prerelease: false |
96 | | - - name: Upload standalone version |
97 | | - if: github.event_name == 'push' |
98 | | - uses: actions/upload-release-asset@v1.0.1 |
99 | | - env: |
100 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
101 | | - with: |
102 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
103 | | - asset_path: ./nowide_standalone.tar.gz |
104 | | - asset_name: nowide_standalone_${{steps.get_tag.outputs.tag}}.tar.gz |
105 | | - asset_content_type: application/tar.gz |
106 | | - - name: Upload Boost version |
107 | | - if: github.event_name == 'push' |
108 | | - uses: actions/upload-release-asset@v1.0.1 |
109 | | - env: |
110 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
111 | | - with: |
112 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
113 | | - asset_path: ./nowide.tar.gz |
114 | | - asset_name: nowide_${{steps.get_tag.outputs.tag}}.tar.gz |
115 | | - asset_content_type: application/tar.gz |
116 | | - - name: Upload Documentation |
117 | | - if: github.event_name == 'push' |
118 | | - uses: actions/upload-release-asset@v1.0.1 |
119 | | - env: |
120 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
121 | | - with: |
122 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
123 | | - asset_path: ./documentation.tar.gz |
124 | | - asset_name: nowide_docu.tar.gz |
125 | | - asset_content_type: application/tar.gz |
| 101 | + files: | |
| 102 | + nowide_${{steps.get_tag.outputs.tag}}.tar.gz |
| 103 | + nowide_standalone_${{steps.get_tag.outputs.tag}}.tar.gz |
| 104 | + nowide_docu.tar.gz |
| 105 | + name: Release ${{steps.get_tag.outputs.tag}} |
| 106 | + tag_name: ${{steps.get_tag.outputs.tag}} |
| 107 | + fail_on_unmatched_files: true |
| 108 | + token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments