Skip to content

Commit

Permalink
shorten up some long lines in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tgharold authored Mar 11, 2020
1 parent 44cf570 commit 5b45fa5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/create-release-asset-on-git-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,16 @@ jobs:
draft: false
prerelease: true

# 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
- name: Attach Zip File to Release
id: upload-release-asset-zip
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: ./${{ env.PROJECT }}-${{ env.RELEASE_TAG }}.zip
asset_name: ${{ env.PROJECT }}-${{ env.RELEASE_TAG }}.zip
asset_content_type: application/zip
Expand All @@ -95,7 +98,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: ./src/${{ env.PROJECT }}/bin/${{ env.CONFIG }}/${{ env.PROJECT }}.${{ env.RELEASE_VERSION }}.nupkg
asset_name: ${{ env.PROJECT }}.${{ env.RELEASE_VERSION }}.nupkg
asset_content_type: application/zip
Expand Down

0 comments on commit 5b45fa5

Please sign in to comment.