@@ -12,52 +12,58 @@ jobs:
1212 runs-on : windows-latest
1313
1414 steps :
15- - uses : actions/checkout@v4
16- - name : Setup .NET
17- uses : actions/setup-dotnet@v4
18- with :
19- dotnet-version : 8.0.x
20- - name : Restore dependencies
21- run : dotnet restore
22- - name : Build
23- run : dotnet build --no-restore
24- - name : Test
25- run : dotnet test --no-build --verbosity normal --blame-hang-timeout 5min
26-
27- - name : Upload Test Report
28- uses : actions/upload-artifact@v4
29- if : always()
30- with :
31- name : test-report
32- path : ' **/MiloLib_RoundTrip_TestReport.html'
33-
34- - name : Publish
35- run : dotnet publish -c Release -o publish
36-
37- - name : Create Zip Archive
38- run : |
39- Compress-Archive -Path publish/* -DestinationPath MiloEditor.zip
40-
41- - name : Create Release
42- id : create_release
43- uses : actions/create-release@v1
44- env :
45- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46- with :
47- tag_name : continuous-${{ github.run_number }}
48- release_name : Continuous Build ${{ github.run_number }}
49- body : |
50- Build automatically generated from commit ${{ github.sha }}. This build may have bugs and/or corrupt Milo scenes - use with caution.
51- draft : false
52- prerelease : true # make it a pre-release
53-
54- - name : Upload Release Asset
55- id : upload-release-asset
56- uses : actions/upload-release-asset@v1
57- env :
58- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59- with :
60- upload_url : ${{ steps.create_release.outputs.upload_url }}
61- asset_path : MiloEditor.zip
62- asset_name : MiloEditor.zip
63- asset_content_type : application/zip
15+ - uses : actions/checkout@v4
16+
17+ - name : Setup .NET
18+ uses : actions/setup-dotnet@v4
19+ with :
20+ dotnet-version : 8.0.x
21+
22+ - name : Restore dependencies
23+ run : dotnet restore
24+
25+ - name : Build
26+ run : dotnet build --no-restore
27+
28+ - name : Test
29+ run : dotnet test --no-build --verbosity normal --blame-hang-timeout 5min
30+
31+ - name : Publish
32+ run : dotnet publish -c Release -o publish
33+
34+ - name : Create Zip Archive
35+ run : |
36+ Compress-Archive -Path publish/* -DestinationPath MiloEditor.zip
37+
38+ - name : Create Release
39+ id : create_release
40+ uses : actions/create-release@v1
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ with :
44+ tag_name : continuous-${{ github.run_number }}
45+ release_name : Continuous Build ${{ github.run_number }}
46+ body : |
47+ Build automatically generated from commit ${{ github.sha }}. This build may have bugs and/or corrupt Milo scenes - use with caution.
48+ draft : false
49+ prerelease : true
50+
51+ - name : Upload Test Report to Release
52+ uses : actions/upload-release-asset@v1
53+ env :
54+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ with :
56+ upload_url : ${{ steps.create_release.outputs.upload_url }}
57+ asset_path : ' **/MiloLib_RoundTrip_TestReport.html'
58+ asset_name : MiloLib_RoundTrip_TestReport.html
59+ asset_content_type : text/html
60+
61+ - name : Upload Release Asset
62+ uses : actions/upload-release-asset@v1
63+ env :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ with :
66+ upload_url : ${{ steps.create_release.outputs.upload_url }}
67+ asset_path : MiloEditor.zip
68+ asset_name : MiloEditor.zip
69+ asset_content_type : application/zip
0 commit comments