From 9edfd958884591419c8f77f8080d93f947474f9d Mon Sep 17 00:00:00 2001 From: jerbob92 Date: Mon, 11 May 2020 20:18:21 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a0b733a..03209aa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -43,6 +43,7 @@ jobs: run: | cd $Env:GITHUB_WORKSPACE nuget pack KlippaOCRAPI.nuspec + echo "::set-env name=NUGET_FILE::$(ls | grep Klippa.OCRAPI.Activities.*.nupkg)" - name: Build and push NuGet if: env.HEAD_TAG != '' @@ -72,8 +73,8 @@ jobs: 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 - asset_path: ./my-artifact.zip - asset_name: my-artifact.zip + asset_path: ./$Env:NUGET_FILE + asset_name: $Env:NUGET_FILE asset_content_type: application/zip - uses: actions/upload-artifact@v2