Skip to content

Commit ca5614f

Browse files
author
Marcin Przepiorowski
committed
Merge branch 'master' into develop
2 parents ef41a96 + d278c79 commit ca5614f

File tree

1 file changed

+7
-63
lines changed

1 file changed

+7
-63
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ jobs:
288288
release:
289289
runs-on: ubuntu-latest
290290
needs: [centos6, centos7, windows, ubuntu, osx]
291+
permissions:
292+
contents: write
291293
steps:
292294

293295
- name: Download centos7
@@ -338,71 +340,13 @@ jobs:
338340
echo FILENAMEWIN=$FILENAMEWIN >> $GITHUB_ENV
339341
echo FILENAMEOSX=$FILENAMEOSX >> $GITHUB_ENV
340342
341-
342343
- name: Create Release
343344
id: create_release
344-
uses: actions/[email protected]
345-
env:
346-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
345+
uses: ncipollo/release-action@v1
347346
with:
348-
tag_name: ${{ env.SOURCE_TAG }}
349-
release_name: Release ${{ env.SOURCE_TAG }}
347+
token: ${{ secrets.GITHUB_TOKEN }}
348+
name: Release ${{ env.SOURCE_TAG }}
350349
draft: true
351350
prerelease: true
352-
body: "To jest tekst
353-
2nd linia"
354-
355-
- name: Upload Release Asset
356-
id: upload-release-asset1
357-
uses: actions/[email protected]
358-
env:
359-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
360-
with:
361-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
362-
asset_path: cento6build/${{ env.FILENAMERH6 }}
363-
asset_name: ${{ env.FILENAMERH6 }}
364-
asset_content_type: application/tgz
365-
366-
- name: Upload Release Asset
367-
id: upload-release-asset2
368-
uses: actions/[email protected]
369-
env:
370-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
371-
with:
372-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
373-
asset_path: cento7build/${{ env.FILENAMERH7 }}
374-
asset_name: ${{ env.FILENAMERH7 }}
375-
asset_content_type: application/tgz
376-
377-
- name: Upload Release Asset
378-
id: upload-release-asset3
379-
uses: actions/[email protected]
380-
env:
381-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
382-
with:
383-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
384-
asset_path: ubuntubuild/${{ env.FILENAMEUBUNTU }}
385-
asset_name: ${{ env.FILENAMEUBUNTU }}
386-
asset_content_type: application/tgz
387-
388-
- name: Upload Release Asset
389-
id: upload-release-asset4
390-
uses: actions/[email protected]
391-
env:
392-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
393-
with:
394-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
395-
asset_path: windowsbuild/${{ env.FILENAMEWIN }}
396-
asset_name: ${{ env.FILENAMEWIN }}
397-
asset_content_type: application/zip
398-
399-
- name: Upload Release Asset
400-
id: upload-release-asset5
401-
uses: actions/[email protected]
402-
env:
403-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
404-
with:
405-
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
406-
asset_path: osxbuild/${{ env.FILENAMEOSX }}
407-
asset_name: ${{ env.FILENAMEOSX }}
408-
asset_content_type: application/tgz
351+
artifacts: "cento7build/${{ env.FILENAMERH7 }},cento6build/${{ env.FILENAMERH6 }},ubuntubuild/${{ env.FILENAMEUBUNTU }},windowsbuild/${{ env.FILENAMEWIN }},osxbuild/${{ env.FILENAMEOSX }}"
352+
tag: ${{ env.SOURCE_TAG }}

0 commit comments

Comments
 (0)