File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 strategy :
1616 matrix :
1717 os : [ubuntu-latest, windows-latest, macos-latest]
18+ include :
19+ - os : ubuntu-latest
20+ rid : linux-x64
21+ - os : windows-latest
22+ rid : windows-x64
23+ - os : macos-latest
24+ rid : osx-x64
1825
1926 runs-on : ${{ matrix.os }}
2027
3037 run : dotnet build --no-restore
3138 - name : Test
3239 run : dotnet test --no-build --verbosity normal
40+ - name : Publish for ${{ matrix.rid }}
41+ run : dotnet publish -c Release -r ${{ matrix.rid }} --self-contained false -o ./publish/${{ matrix.rid }} /p:PublishTrimmed=true
42+ - name : Upload artifact
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : FolderSync-${{ matrix.rid }}
46+ path : ./publish/${{ matrix.rid }}
47+
48+ release :
49+ name : Create release
50+ needs : build
51+ runs-on : ubuntu-latest
52+ permissions :
53+ contents : write
54+ packages : write
55+ steps :
56+ - name : Download all artifacts
57+ uses : actions/download-artifact@v4
58+ with :
59+ path : ./artifacts
60+ - name : Create Release
61+ id : create_release
62+ uses : softprops/action-gh-release@v2
63+ with :
64+ tag_name : build-${{ github.run_number }}
65+ name : build-${{ github.run_number }}
66+ env :
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ - name : Upload Release Assets
69+ uses : softprops/action-gh-release@v2
70+ with :
71+ files : ./artifacts/**
72+ env :
73+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
74+
Original file line number Diff line number Diff line change 1- Launch with the following arguments. Note that us of absolute paths is required:
1+ Launch with the following arguments. Note that use of absolute paths is required:
22
3- * --syncPeriod 10*
4- * --source /home/sampleSource* or * --source C:\\ sampleSource*
5- * --dest /home/sampleDest* or * --dest C:\\ sampleDest*
3+ < br > * --syncPeriod 10* </ br >
4+ < br > * --source /home/sampleSource* or * --source C:\\ sampleSource* </ br >
5+ < br > * --dest /home/sampleDest* or * --dest C:\\ sampleDest* </ br >
66* --log /home/Log* or * --log C:\\ LogFolder* &rarr ; log is saved as * SyncLog_day-month-year hour: minute .log*
You can’t perform that action at this time.
0 commit comments