File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 branches : [ "main" ]
99 pull_request :
1010 branches : [ "main" ]
11- tags :
12- - " v*"
1311 workflow_dispatch :
1412
1513jobs :
4038 run : dotnet build --no-restore
4139 - name : Test
4240 run : dotnet test --no-build --verbosity normal
43- - name : Publish for ${{ matrix.rid }}
44- run : dotnet publish -c Release -r ${{ matrix.rid }} --self-contained true -p:PublishSingleFile=true -p:UseAppHost=true -p:PublishTrimmed=true -o ./publish/${{ matrix.rid }}
45- - name : Upload artifact
46- uses : actions/upload-artifact@v4
47- with :
48- name : FolderSync-${{ matrix.rid }}
49- path : ./publish/${{ matrix.rid }}
50-
51- release :
52- name : Create release
53- needs : build
54- runs-on : ubuntu-latest
55- permissions :
56- contents : write
57- packages : write
58- steps :
59- - name : Download all artifacts
60- uses : actions/download-artifact@v4
61- with :
62- path : ./artifacts
63- - name : Create Release
64- id : create_release
65- uses : softprops/action-gh-release@v2
66- with :
67- tag_name : ${{ github.ref_name }}
68- name : build-${{ github.ref_name }}
69- env :
70- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71- - name : Upload Release Assets
72- uses : softprops/action-gh-release@v2
73- with :
74- tag_name : ${{ github.ref_name }}
75- files : ./artifacts/**
76- env :
77- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78-
You can’t perform that action at this time.
0 commit comments