From 5e8c956c70e442fac8c4a2ac76bab27c055878a3 Mon Sep 17 00:00:00 2001 From: Jan Feil <11638228+jfeil@users.noreply.github.com> Date: Sun, 20 Feb 2022 13:58:06 +0100 Subject: [PATCH] Rename release output to contain version and os name --- .github/workflows/debug-release.yml | 14 ++++++++------ .github/workflows/tagged-release.yml | 12 ++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/debug-release.yml b/.github/workflows/debug-release.yml index e8b3f0a..45e2d9f 100644 --- a/.github/workflows/debug-release.yml +++ b/.github/workflows/debug-release.yml @@ -4,6 +4,8 @@ on: push: branches: - 'main' + tags-ignore: + - 'v*' jobs: build: uses: ./.github/workflows/ci-autobuild.yml @@ -43,9 +45,9 @@ 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 @@ -53,9 +55,9 @@ 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.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 @@ -63,7 +65,7 @@ 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.exe - asset_name: RegeltestCreator.exe + asset_name: RegeltestCreator_windows_${{ needs.build.outputs.version }}.exe asset_content_type: application/vnd.microsoft.portable-executable \ No newline at end of file diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index 613c78a..ed59eaf 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -46,9 +46,9 @@ 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 @@ -56,9 +56,9 @@ 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.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 @@ -66,7 +66,7 @@ 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.exe - asset_name: RegeltestCreator.exe + asset_name: RegeltestCreator_windows_${{ needs.build.outputs.version }}.exe asset_content_type: application/vnd.microsoft.portable-executable \ No newline at end of file