File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Bicep.Docs packages
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags :
7+ - ' *'
8+
9+ defaults :
10+ run :
11+ working-directory : ./Bicep.Docs
12+
13+ jobs :
14+ build :
15+
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - uses : actions/checkout@v3
20+ - name : Setup .NET
21+ uses : actions/setup-dotnet@v2
22+ with :
23+ dotnet-version : 8.0.x
24+ - name : Restore dependencies
25+ run : dotnet restore
26+ - name : Build
27+ run : dotnet build --no-restore --configuration=Release
28+ - name : Publish Windows
29+ run : dotnet publish -p:PublishProfile=win-x64
30+ - name : Publish Linux
31+ run : dotnet publish -p:PublishProfile=linux-x64
32+ - name : Publish macOS
33+ run : dotnet publish -p:PublishProfile=osx-x64
34+ - name : Upload Windows artifact
35+ uses : actions/upload-artifact@v3.1.0
36+ with :
37+ name : win-x64
38+ path : ${{ github.workspace }}/Bicep.Docs/bin/Release/net8.0/publish/win-x64
39+ - name : Upload Linux artifact
40+ uses : actions/upload-artifact@v3.1.0
41+ with :
42+ name : linux-x64
43+ path : ${{ github.workspace }}/Bicep.Docs/bin/Release/net8.0/publish/linux-x64
44+ - name : Upload MacOS artifact
45+ uses : actions/upload-artifact@v3.1.0
46+ with :
47+ name : osx-x64
48+ path : ${{ github.workspace }}/Bicep.Docs/bin/Release/net8.0/publish/osx-x64
You can’t perform that action at this time.
0 commit comments