Commit 537585d 1 parent 5e204cd commit 537585d Copy full SHA for 537585d
File tree 2 files changed +43
-8
lines changed
2 files changed +43
-8
lines changed Original file line number Diff line number Diff line change 1
- name : Test Build Library
1
+ name : Build Library
2
2
run-name : ${{ github.actor }} is building SharpPipe
3
3
4
4
on :
7
7
- ' **/*.md'
8
8
branches :
9
9
- main
10
- pull_request :
11
- branches :
12
- - main
13
- paths-ignore :
14
- - ' **/*.md'
10
+
15
11
16
12
jobs :
17
13
build :
29
25
Invoke-WebRequest https://github.com/Yellow-Dog-Man/soundpipe/releases/latest/download/SoundPipe-Windows-Linux.zip -OutFile .\SoundPipe-Windows-Linux.zip
30
26
Expand-Archive .\SoundPipe-Windows-Linux.zip -DestinationPath .\SharpPipe
31
27
32
-
33
28
- name : Build
34
29
working-directory : ./SharpPipe
35
- run : dotnet pack -c Release
30
+ run : dotnet pack -c Release
31
+
32
+ - name : Put a big red bow on it
33
+ uses : actions/upload-artifact@v4
34
+ with :
35
+ name : SharpPipe
36
+ path : SharpPipe/bin/Release/*.nupkg
37
+
Original file line number Diff line number Diff line change
1
+ name : Publish Library
2
+ run-name : ${{ github.actor }} is publishing SharpPipe
3
+
4
+ on :
5
+ release :
6
+ types : [published]
7
+
8
+
9
+ jobs :
10
+ publish :
11
+ env :
12
+ VERSION : ${{ github.event.release.tag_name }}
13
+
14
+ runs-on : windows-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Setup .NET
19
+ uses : actions/setup-dotnet@v3
20
+ with :
21
+ dotnet-version : 8.0.x
22
+
23
+ - name : Download soundpipe native library
24
+ run : |
25
+ Invoke-WebRequest https://github.com/Yellow-Dog-Man/soundpipe/releases/latest/download/SoundPipe-Windows-Linux.zip -OutFile .\SoundPipe-Windows-Linux.zip
26
+ Expand-Archive .\SoundPipe-Windows-Linux.zip -DestinationPath .\SharpPipe
27
+
28
+ - name : Build
29
+ working-directory : ./SharpPipe
30
+ run : dotnet pack -c Release -p:Version=${{ env.VERSION }} -p:PackageVersion=${{ env.VERSION }}
31
+
32
+ - name : Nuget Publish
33
+ run : dotnet nuget push .\LiteNetLib\bin\Release\*.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments