Skip to content

Commit c213b1a

Browse files
committed
Fix CI
1 parent 85ed651 commit c213b1a

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Publish
22

33
on:
44
push:
5-
branches:
6-
- release
5+
tags:
6+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
77

88
jobs:
99
build:
@@ -12,16 +12,25 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v1
15-
with:
16-
ref: 'release'
1715
- name: Setup .NET Core
1816
uses: actions/setup-dotnet@v1
1917
with:
2018
dotnet-version: 3.1.100-preview1-014459
2119
- name: Build
2220
run: dotnet build --configuration Release
2321
- name: Pack
24-
run: dotnet pack --configuration Release --output packages /p:Version=1.1.0-preview1
22+
working-directory: src/Blazor.Extensions.Logging
23+
run: dotnet pack --configuration Release
2524
- name: Push
25+
working-directory: src/Blazor.Extensions.Logging/bin/Release
2626
run: |
27-
dotnet nuget push packages/Blazor.Extensions.Logging.1.1.0-preview1.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
27+
dotnet nuget push Blazor.Extensions.Logging.*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
28+
- name: Create Release
29+
uses: actions/create-release@master
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ github.ref }}
34+
release_name: Release ${{ github.ref }}
35+
draft: false
36+
prerelease: false

src/Blazor.Extensions.Logging/Blazor.Extensions.Logging.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<RazorLangVersion>3.0</RazorLangVersion>
1313
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
1414
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);IncludeP2POutput</TargetsForTfmSpecificBuildOutput>
15+
<PackageId>Blazor.Extensions.Logging</PackageId>
16+
<PackageVersion>1.1.0-preview2</PackageVersion>
1517
</PropertyGroup>
1618

1719
<ItemGroup>

0 commit comments

Comments
 (0)