Skip to content

Commit 8efc23a

Browse files
committed
Merge branch 'develop'
2 parents fa351bf + 224f372 commit 8efc23a

File tree

1 file changed

+18
-35
lines changed

1 file changed

+18
-35
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 - 2020 Alexander Grund
1+
# Copyright 2019 - 2025 Alexander Grund
22
# Distributed under the Boost Software License, Version 1.0.
33
# https://www.boost.org/LICENSE_1_0.txt
44

@@ -14,6 +14,8 @@ jobs:
1414
release:
1515
name: Create Release
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
1719
env:
1820
DEP_DIR: ${{github.workspace}}/dependencies
1921
BOOST_VERSION: 1.66.0
@@ -80,46 +82,27 @@ jobs:
8082
ctest --output-on-failure -C Debug --verbose
8183
cmake --build . --config Debug --target install
8284
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+
8391
- name: Create Release
8492
if: github.event_name == 'push'
85-
id: create_release
86-
uses: actions/create-release@v1
93+
uses: softprops/action-gh-release@v2
8794
env:
8895
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8996
with:
90-
tag_name: ${{ github.ref }}
91-
release_name: Release ${{ github.ref }}
9297
body: |
9398
UTF8-aware functions for Windows to make cross-platform easier
9499
draft: false
95100
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

Comments
 (0)