Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-bym authored Apr 15, 2022
1 parent ddf1e76 commit 8f83fa6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:

jobs:
build-test-pack:
if: startsWith(${{ github.event.release.name }}, 'di:') == true

runs-on: ubuntu-latest

steps:
- run: echo "Name:${{ github.event.release.name }}"

- name: Checkout
uses: actions/checkout@v2

Expand All @@ -24,4 +23,11 @@ jobs:
run: dotnet test --no-build --verbosity normal --configuration Release

- name: Pack
run: dotnet pack ./src/YandexWeatherApi/YandexWeatherApi.csproj --output nupkgs --no-build --configuration Release -p:PackageVersion=${{ github.event.release.tag_name }}
run: |
dotnet pack ./src/YandexWeatherApi/YandexWeatherApi.csproj --output nupkgs --no-build --configuration Release -p:PackageVersion=${{ github.event.release.tag_name }}
dotnet pack ./src/YandexWeatherApi.DependencyInjection/YandexWeatherApi.DependencyInjection.csproj --output nupkgs --no-build --configuration Release -p:PackageVersion=${{ github.event.release.tag_name }}
- name: Push
run: |
dotnet nuget push ./nupkgs/YandexWeatherApi.${{ github.event.release.tag_name }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
dotnet nuget push ./nupkgs/YandexWeatherApi.DependencyInjection.${{ github.event.release.tag_name }}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

0 comments on commit 8f83fa6

Please sign in to comment.