File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111 runs-on : windows-latest
12+ permissions :
13+ contents : write
1214
1315 steps :
1416 - uses : actions/checkout@v4
3739 with :
3840 name : CrashDetectorwithAI-app
3941 path : bin/Release/net9.0-windows/
42+
43+ - name : Zip build output
44+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
45+ run : Compress-Archive -Path bin\Release\net9.0-windows\* -DestinationPath CrashDetectorwithAI.zip
46+ shell : pwsh
47+
48+ - name : Create or update Release
49+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
50+ uses : softprops/action-gh-release@v2
51+ with :
52+ tag_name : latest
53+ name : Latest Build
54+ body : " Automated build from commit ${{ github.sha }}"
55+ files : CrashDetectorwithAI.zip
56+ make_latest : true
57+ env :
58+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments