Skip to content

Commit

Permalink
Rename release output to contain version and os name
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeil committed Feb 20, 2022
1 parent 7b68faa commit 5e8c956
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/debug-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- 'main'
tags-ignore:
- 'v*'
jobs:
build:
uses: ./.github/workflows/ci-autobuild.yml
Expand Down Expand Up @@ -43,27 +45,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RegeltestCreator
asset_name: RegeltestCreator
asset_name: RegeltestCreator_linux_${{ needs.build.outputs.version }}
asset_content_type: application/octet-stream
- name: Upload Release Asset
id: upload-release-asset-macos
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RegeltestCreator.app.zip
asset_name: RegeltestCreator.app.zip
asset_name: RegeltestCreator_macos_${{ needs.build.outputs.version }}.app.zip
asset_content_type: application/zip
- name: Upload Release Asset
id: upload-release-asset-windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RegeltestCreator.exe
asset_name: RegeltestCreator.exe
asset_name: RegeltestCreator_windows_${{ needs.build.outputs.version }}.exe
asset_content_type: application/vnd.microsoft.portable-executable
12 changes: 6 additions & 6 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,27 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RegeltestCreator
asset_name: RegeltestCreator
asset_name: RegeltestCreator_linux_${{ needs.build.outputs.version }}
asset_content_type: application/octet-stream
- name: Upload Release Asset
id: upload-release-asset-macos
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RegeltestCreator.app.zip
asset_name: RegeltestCreator.app.zip
asset_name: RegeltestCreator_macos_${{ needs.build.outputs.version }}.app.zip
asset_content_type: application/zip
- name: Upload Release Asset
id: upload-release-asset-windows
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
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
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RegeltestCreator.exe
asset_name: RegeltestCreator.exe
asset_name: RegeltestCreator_windows_${{ needs.build.outputs.version }}.exe
asset_content_type: application/vnd.microsoft.portable-executable

0 comments on commit 5e8c956

Please sign in to comment.