File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7- repository_dispatch :
8- types : [build]
7+ # repository_dispatch:
8+ # types: [build]
99 workflow_dispatch :
1010
1111jobs :
2525
2626 steps :
2727
28- - uses : actions/checkout@v1
28+ - uses : actions/checkout@v2
2929 name : Checkout
3030
3131 - name : Setup Node.js (12.x)
4444 dotnet test -v=normal --filter "FullyQualifiedName!~IntegrationTests&Unstable!=True" -c ${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_PATH}}
4545
4646 - name : Nuget Pack
47- run : dotnet pack --configuration ${{env.BUILD_CONFIGURATION}} --output "${{github.workspace}}/package/" ${{env.SOLUTION_PATH}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
47+ run : dotnet pack --configuration ${{env.BUILD_CONFIGURATION}} --output "${{github.workspace}}/package/" ${{env.SOLUTION_PATH}}
48+
49+ - uses : actions/upload-artifact@v2
50+ if : matrix.os == 'ubuntu-latest'
51+ with :
52+ name : Blockcore-${{env.VERSION}}-preview
53+ path : " ${{github.workspace}}/package/"
4854
4955 - uses : actions/upload-artifact@v2
5056 with :
Original file line number Diff line number Diff line change 99
1010 publishPreReleasePackages :
1111
12- runs-on : windows -latest
12+ runs-on : ubuntu -latest
1313
1414 env :
1515 SOLUTION_PATH : ' src/Blockcore.sln'
1818
1919 steps :
2020
21- - uses : actions/checkout@v1
21+ - uses : actions/checkout@v2
2222
2323 # TEMPORARY DISABLED - Do we want to continue with this?
2424
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2222
2323 steps :
2424
25- - uses : actions/checkout@v1
25+ - uses : actions/checkout@v2
2626
2727 - name : Restore
2828 run : dotnet restore ${{env.SOLUTION_PATH}}
Original file line number Diff line number Diff line change 1+ name : Publish Release Packages
2+
3+ on :
4+ release :
5+ types : [published]
6+ # repository_dispatch:
7+ # types: [publish-packages]
8+ workflow_dispatch :
9+
10+ jobs :
11+
12+ publishPackages :
13+
14+ runs-on : ubuntu-latest
15+
16+ env :
17+ SOLUTION_PATH : ' src/Blockcore.sln'
18+ BUILD_CONFIGURATION : ' Release'
19+
20+ steps :
21+
22+ - uses : actions/checkout@v2
23+
24+ - name : Log Variables
25+ run : |
26+ echo "action - ${{ github.event.action }}"
27+ echo "url - ${{ github.event.release.url }}"
28+ echo "assets_url - ${{ github.event.release.assets_url }}"
29+ echo "id - ${{ github.event.release.id }}"
30+ echo "tag_name - ${{ github.event.release.tag_name }}"
31+ echo "assets - ${{ github.event.assets }}"
32+ echo "assets[0] - ${{ github.event.assets[0] }}"
33+
34+ - name : Release Download
35+ uses : sondreb/action-release-download@master
36+ with :
37+ token : ${{ secrets.GITHUB_TOKEN }}
38+ url : ${{ github.event.release.assets_url }}
39+ folder : " ./artifacts/"
40+
41+ - name : Display structure of downloaded files
42+ run : ls -R
43+
44+ - name : Nuget Push
45+ run : nuget push "${{github.workspace}}/artifacts/*.nupkg" -ApiKey ${{secrets.NUGET_KEY}} -Source "https://api.nuget.org/v3/index.json" -SkipDuplicate
Original file line number Diff line number Diff line change 2424
2525 steps :
2626
27- - uses : actions/checkout@v1
27+ - uses : actions/checkout@v2
2828
2929 - name : Restore
3030 run : dotnet restore ${{env.SOLUTION_PATH}}
Original file line number Diff line number Diff line change 1313 <PackageIconUrl >https://www.blockcore.net/assets/blockcore-256x256.png</PackageIconUrl >
1414 <PackageTags >blockchain;cryptocurrency;crypto;C#;.NET;bitcoin;blockcore</PackageTags >
1515 <GenerateDocumentationFile >true</GenerateDocumentationFile >
16+ <PublishRepositoryUrl >true</PublishRepositoryUrl >
17+ <EmbedUntrackedSources >true</EmbedUntrackedSources >
18+ <IncludeSymbols >true</IncludeSymbols >
19+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
20+ <DebugType >portable</DebugType >
1621 </PropertyGroup >
1722
23+ <ItemGroup >
24+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0" PrivateAssets =" All" />
25+ </ItemGroup >
26+
1827 <Target Name =" AddInternalsVisibleTo" BeforeTargets =" CoreCompile" >
1928 <ItemGroup >
2029
You can’t perform that action at this time.
0 commit comments