Skip to content

Commit

Permalink
Publish plugin in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Jul 27, 2024
1 parent 446bb81 commit 5379428
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@ jobs:
set_check_status_from_test_outcome: true
project_path: src/dotnet/ReSharperPlugin.NSubstituteComplete.Tests/ReSharperPlugin.NSubstituteComplete.Tests.csproj
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Unpack Distribution
shell: pwsh
run: scripts/Unpack-Distribution.ps1
- name: Upload artifact
uses: actions/[email protected]
with:
name: NSubstituteCompleteRiderPlugin
path: build/distributions/unpacked
- name: Upload artifact
uses: actions/[email protected]
with:
name: NSubstituteCompleteReSharperPlugin
path: build/distributions/*.nupkg
19 changes: 19 additions & 0 deletions scripts/Unpack-Distribution.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

<#
.SYNOPSIS
Taken from: https://github.com/ForNeVeR/AvaloniaRider/blob/master/scripts/Unpack-Distribution.ps1
The purpose of this script is to unpack the compressed plugin artifact.
It is used during CI builds to generate the layout for uploading.
.PARAMETER DistributionsLocation
Path to the directory containing compressed plugin distribution.
#>
param (
[string] $DistributionsLocation = "$PSScriptRoot/../build/distributions"
)

Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'

$file = "$DistributionsLocation/ApplicationInsights-Debug-Log-Viewer-*.zip"

Expand-Archive -Path $file -DestinationPath $DistributionsLocation/unpacked

0 comments on commit 5379428

Please sign in to comment.