Skip to content

Commit 5b45fa5

Browse files
authored
shorten up some long lines in the workflow
1 parent 44cf570 commit 5b45fa5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/create-release-asset-on-git-tag.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,16 @@ jobs:
7878
draft: false
7979
prerelease: true
8080

81+
# This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object,
82+
# which include a `upload_url`. See this blog post for more info:
83+
# https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
8184
- name: Attach Zip File to Release
8285
id: upload-release-asset-zip
8386
uses: actions/upload-release-asset@v1
8487
env:
8588
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8689
with:
87-
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
90+
upload_url: ${{ steps.create_release.outputs.upload_url }}
8891
asset_path: ./${{ env.PROJECT }}-${{ env.RELEASE_TAG }}.zip
8992
asset_name: ${{ env.PROJECT }}-${{ env.RELEASE_TAG }}.zip
9093
asset_content_type: application/zip
@@ -95,7 +98,7 @@ jobs:
9598
env:
9699
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97100
with:
98-
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
101+
upload_url: ${{ steps.create_release.outputs.upload_url }}
99102
asset_path: ./src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.PROJECT }}.${{ env.RELEASE_VERSION }}.nupkg
100103
asset_name: ${{ env.PROJECT }}.${{ env.RELEASE_VERSION }}.nupkg
101104
asset_content_type: application/zip

0 commit comments

Comments
 (0)