Skip to content

Commit 2b8d6f9

Browse files
committed
fixed readme
testing if the yaml is correct and will publish releases
1 parent 3ce64bd commit 2b8d6f9

2 files changed

Lines changed: 46 additions & 4 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ jobs:
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

@@ -30,3 +37,38 @@ jobs:
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+

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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*

0 commit comments

Comments
 (0)