Skip to content

Commit

Permalink
Enable prerelease & upload symbol packages (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitii authored Apr 17, 2022
1 parent 68f1459 commit e4feb2c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Auto approve

on:
pull_request_target
pull_request:
types: [opened]

jobs:
auto-approve:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Run tests & verify coverage

on:
push:
branches:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Release packages

on:
push:
tags:
Expand Down Expand Up @@ -45,7 +47,8 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: "./nuget/*.nupkg"
prerelease: ${{ endsWith(steps.tagName.outputs.tag, '[-][\w\d]+') }}
- name: Push packages to Nuget registry
run: dotnet nuget push $(Get-ChildItem -Path ./nuget -Filter "*.nupkg").FullName --source "https://api.nuget.org/v3/index.json" --api-key "$env:NUGET_API_KEY" --skip-duplicate --no-symbols 1
run: dotnet nuget push $(Get-ChildItem -Path ./nuget -Filter "*.nupkg").FullName --source "https://api.nuget.org/v3/index.json" --api-key "$env:NUGET_API_KEY" --skip-duplicate
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
2 changes: 2 additions & 0 deletions Community.Wsl.Sdk/Community.Wsl.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../RELEASE-NOTES.txt"))</PackageReleaseNotes>
<IsPackable>true</IsPackable>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net6.0-windows|AnyCPU'">
Expand Down

0 comments on commit e4feb2c

Please sign in to comment.