From e4feb2c01f240140b9d266325a57143aac22d922 Mon Sep 17 00:00:00 2001 From: Gitii Date: Sun, 17 Apr 2022 19:48:06 +0200 Subject: [PATCH] Enable prerelease & upload symbol packages (#8) --- .github/workflows/auto-approve.yml | 3 ++- .github/workflows/ci.yml | 2 ++ .github/workflows/release.yml | 7 +++++-- Community.Wsl.Sdk/Community.Wsl.Sdk.csproj | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index dc707a7..4c64aa5 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -1,7 +1,8 @@ name: Auto approve on: - pull_request_target + pull_request: + types: [opened] jobs: auto-approve: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c55a24c..1f8faf4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,5 @@ +name: Run tests & verify coverage + on: push: branches: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 409f6dc..30a7eaa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,5 @@ +name: Release packages + on: push: tags: @@ -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 }} \ No newline at end of file + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} diff --git a/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj b/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj index 2d3bd57..c15d18b 100644 --- a/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj +++ b/Community.Wsl.Sdk/Community.Wsl.Sdk.csproj @@ -22,6 +22,8 @@ README.md $([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../RELEASE-NOTES.txt")) true + true + snupkg