From 98f513eb7a6480cec069a17c219d29e9fc4cfe88 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 15:06:08 +0200 Subject: [PATCH 1/3] - add checkout --- .github/workflows/deploy.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b00211b..b6da841 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,8 @@ jobs: # runs-on: windows-latest # steps: +# - name: Checkout +# uses: actions/checkout@v1 # - name: Deploy to NuGet Gallery # env: # NUGET_KEY: ${{ secrets.NUGET_KEY }} @@ -21,6 +23,8 @@ jobs: runs-on: windows-latest steps: + - name: Checkout + uses: actions/checkout@v1 - name: Deploy to GitHub Package Registry # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From b9b1dc9b8b8bc250be989d34f81c6270cc714213 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 15:09:47 +0200 Subject: [PATCH 2/3] - add test outputs --- .github/workflows/deploy.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b6da841..bd3169f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,19 +1,19 @@ name: Deploy -on: [release] +on: [push] jobs: -# nuget: -# name: NuGet -# runs-on: windows-latest + nuget: + name: NuGet + runs-on: windows-latest -# steps: -# - name: Checkout -# uses: actions/checkout@v1 -# - name: Deploy to NuGet Gallery + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Deploy to NuGet Gallery # env: # NUGET_KEY: ${{ secrets.NUGET_KEY }} -# run: + run: echo Test NuGet # dotnet pack -c Release # cd bin\Release # dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json @@ -28,7 +28,8 @@ jobs: - name: Deploy to GitHub Package Registry # env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: dotnet pack -c Release + run: echo Test GitHub +# dotnet pack -c Release # nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/SimonG96/index.json" -UserName SimonG96 -Password GITHUB_TOKEN # cd bin\Release # dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry" From c28cdaef3956721be0e1cd011a4d73b13c8ac736 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 15:11:42 +0200 Subject: [PATCH 3/3] - change to on: release --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bd3169f..94461d2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,6 +1,6 @@ name: Deploy -on: [push] +on: [release] jobs: nuget: