File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Release version (e.g. 1.0.0)'
8+ required : true
9+ type : string
10+
11+ jobs :
12+ build_and_release :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+ steps :
17+ - uses : actions/checkout@v4
18+ - uses : actions/setup-dotnet@v4
19+ with :
20+ dotnet-version : 8.0
21+ - name : Build
22+ run : dotnet build -c Release
23+ - name : Test
24+ run : dotnet test --no-restore
25+ - name : Publish
26+ run : dotnet publish --no-restore -c Release -o release /p:"AssemblyVersion=${{ inputs.version }};FileVersion=${{ inputs.version }};InformationalVersion=${{ inputs.version }}"
27+ - name : Prepare artifacts
28+ run : cp {README,xvd_info,CHANGELOG}.md release
29+ - name : Generate zip
30+ run : zip -j XVDTool-${{ inputs.version }}.zip release/*
31+ - name : Create release
32+ uses : softprops/action-gh-release@v2
33+ with :
34+ name : Release v${{ inputs.version }}
35+ tag_name : v${{ inputs.version }}
36+ generate_release_notes : true
37+ files : ' XVDTool-*.zip'
38+ fail_on_unmatched_files : true
You can’t perform that action at this time.
0 commit comments