File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 14
14
- uses : actions/checkout@v2
15
15
16
16
- name : Run build and tests
17
- run : ./Build.ps1 -RunTests $true
17
+ run : ./Build.ps1
Original file line number Diff line number Diff line change 14
14
- uses : actions/checkout@v2
15
15
16
16
- name : Run build
17
- run : ./Build.ps1
17
+ run : ./Build.ps1 -SkipTests $true
18
18
19
19
- name : Read version from csproj
20
20
run : |
@@ -24,15 +24,15 @@ jobs:
24
24
echo "Found version $versionMatch"
25
25
26
26
- name : Create GitHub releease
27
- # if: ${{ github.ref_name == 'master' }}
27
+ if : ${{ github.ref_name == 'master' }}
28
28
uses : " marvinpinto/action-automatic-releases@latest"
29
29
with :
30
30
repo_token : " ${{ secrets.GITHUB_TOKEN }}"
31
- automatic_release_tag : " v${{ env.VERSION }}-test"
32
- draft : true
33
- title : " v${{ env.VERSION }}-test"
31
+ automatic_release_tag : " v${{ env.VERSION }}"
32
+ title : " v${{ env.VERSION }}"
34
33
files : |
35
34
artifacts/*.nupkg
36
35
artifacts/*.snupkg
37
36
38
- # TODO: upload to nuget.org
37
+ - name : Publish to nuget.org
38
+ run : nuget push artifacts\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
Original file line number Diff line number Diff line change 2
2
param (
3
3
[Parameter (Mandatory = $false )]
4
4
[System.Boolean ]
5
- $RunTests = $false
5
+ $SkipTests = $false
6
6
)
7
7
8
8
echo " build: Build started"
@@ -18,7 +18,7 @@ if(Test-Path .\artifacts) {
18
18
19
19
$branch = @ { $true = $env: GITHUB_REF_NAME ; $false = $ (git symbolic- ref -- short - q HEAD) }[$env: GITHUB_REF_NAME -ne $NULL ];
20
20
$revision = @ { $true = " {0:00000}" -f [convert ]::ToInt32(" 0" + $env: GITHUB_RUN_NUMBER , 10 ); $false = " local" }[$env: GITHUB_RUN_NUMBER -ne $NULL ];
21
- $suffix = @ { $true = " " ; $false = " $ ( $branch.Substring (0 , [math ]::Min(10 , $branch.Length ))) -$revision " }[$branch -eq " master " -and $revision -ne " local" ]
21
+ $suffix = @ { $true = " " ; $false = " $ ( $branch.Substring (0 , [math ]::Min(10 , $branch.Length ))) -$revision " }[$branch -ne " dev " -and $revision -ne " local" ]
22
22
23
23
echo " build: Version suffix is $suffix "
24
24
@@ -37,7 +37,7 @@ foreach ($src in ls src/*) {
37
37
Pop-Location
38
38
}
39
39
40
- if ($RunTests -eq $true ) {
40
+ if ($SkipTests -eq $false ) {
41
41
foreach ($test in ls test/* .PerformanceTests) {
42
42
Push-Location $test
43
43
You can’t perform that action at this time.
0 commit comments