File tree 2 files changed +26
-1
lines changed 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,16 @@ jobs:
70
70
run : |
71
71
$version = ./scripts/Get-Version.ps1
72
72
Write-Output "::set-env name=AVALONIA_RIDER_VERSION::$version"
73
+ - name : Unpack Distribution # for the purpose of uploading
74
+ if : matrix.image == 'ubuntu-18.04'
75
+ shell : pwsh
76
+ run : scripts/Unpack-Distribution.ps1
73
77
- name : Upload Distribution
74
78
if : matrix.image == 'ubuntu-18.04'
75
79
uses : actions/upload-artifact@v2
76
80
with :
77
81
name : avaloniarider-${{ env.AVALONIA_RIDER_VERSION }}
78
- path : build/distributions/avaloniarider-${{ env.AVALONIA_RIDER_VERSION }}.zip
82
+ path : build/distributions/unpacked
79
83
80
84
# Finalize
81
85
- name : Stop Gradle Daemon # to collect Gradle cache
Original file line number Diff line number Diff line change
1
+ <#
2
+ . SYNOPSIS
3
+ The purpose of this script is to unpack the compressed plugin artifact.
4
+
5
+ It is used during CI builds to generate the layout for uploading.
6
+ . PARAMETER DistributionsLocation
7
+ Path to the directory containing compressed plugin distribution.
8
+ #>
9
+ param (
10
+ [string ] $DistributionsLocation = " $PSScriptRoot /../build/distributions"
11
+ )
12
+
13
+ $file = Get-Item $DistributionsLocation /*
14
+ if (! $file ) {
15
+ throw " File not found in $DistributionsLocation "
16
+ }
17
+ if ($file.Count -gt 1 ) {
18
+ throw " Found more files than expected in ${DistributionsLocation} : $ ( $file.Count ) "
19
+ }
20
+
21
+ Expand-Archive - Path $file - DestinationPath $DistributionsLocation / unpacked
You can’t perform that action at this time.
0 commit comments