|
61 | 61 | - name: Build AvaloniaApp |
62 | 62 | run: dotnet build ./src/ST.Client.Desktop.Avalonia.App/ST.Client.Avalonia.App.csproj -c "${{ env.Configuration }}" |
63 | 63 |
|
| 64 | + - name: Build ST.Tools.Publish Release |
| 65 | + run: dotnet build ./src/ST.Tools.Publish/ST.Tools.Publish.csproj -c Release |
| 66 | + |
64 | 67 | - name: Run CommonUnit |
65 | 68 | run: dotnet test ./tests/Common.UnitTest/Common.UnitTest.csproj -c "${{ env.Configuration }}" |
66 | 69 |
|
@@ -102,71 +105,71 @@ jobs: |
102 | 105 | run: | |
103 | 106 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
104 | 107 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_win_x64_fde_v${{ steps.tag.outputs.tag }}.7z C:\PublishFiles |
105 | | - echo "fd_win_x64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_win_x64_fde_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 108 | + echo "fd_win_x64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_win_x64_fde_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
106 | 109 |
|
107 | 110 | - name: Package win-x64 |
108 | 111 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
109 | 112 | shell: pwsh |
110 | 113 | run: | |
111 | 114 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
112 | 115 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_win_x64_v${{ steps.tag.outputs.tag }}.7z C:\PublishFiles |
113 | | - echo "win_x64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_win_x64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 116 | + echo "win_x64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_win_x64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
114 | 117 |
|
115 | 118 | - name: Package osx-64 |
116 | 119 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
117 | 120 | shell: pwsh |
118 | 121 | run: | |
119 | 122 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
120 | 123 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_macos_x64_v${{ steps.tag.outputs.tag }}.7z C:\PublishFiles |
121 | | - echo "macos_x64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_macos_x64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 124 | + echo "macos_x64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_macos_x64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
122 | 125 |
|
123 | 126 | - name: Package linux-x64 7z |
124 | 127 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
125 | 128 | shell: pwsh |
126 | 129 | run: | |
127 | 130 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
128 | 131 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.7z C:\PublishFiles |
129 | | - echo "linux_x64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 132 | + echo "linux_x64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
130 | 133 | |
131 | 134 | - name: Package linux-arm64 7z |
132 | 135 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
133 | 136 | shell: pwsh |
134 | 137 | run: | |
135 | 138 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
136 | 139 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.7z C:\PublishFiles |
137 | | - echo "linux_arm64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 140 | + echo "linux_arm64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.7z)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
138 | 141 | |
139 | 142 | - name: Package linux-x64 deb |
140 | 143 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
141 | 144 | shell: pwsh |
142 | 145 | run: | |
143 | 146 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
144 | 147 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.deb C:\PublishFiles |
145 | | - echo "deb_linux_arm64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.deb)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 148 | + echo "deb_linux_arm64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.deb)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
146 | 149 |
|
147 | 150 | - name: Package linux-arm64 deb |
148 | 151 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
149 | 152 | shell: pwsh |
150 | 153 | run: | |
151 | 154 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
152 | 155 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.deb C:\PublishFiles |
153 | | - echo "deb_linux_arm64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.deb)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 156 | + echo "deb_linux_arm64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.deb)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
154 | 157 |
|
155 | 158 | - name: Package linux-x64 rpm |
156 | 159 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
157 | 160 | shell: pwsh |
158 | 161 | run: | |
159 | 162 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
160 | 163 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.rpm C:\PublishFiles |
161 | | - echo "rpm_linux_arm64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.rpm)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 164 | + echo "rpm_linux_arm64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_x64_v${{ steps.tag.outputs.tag }}.rpm)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
162 | 165 |
|
163 | 166 | - name: Package linux-arm64 rpm |
164 | 167 | if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} |
165 | 168 | shell: pwsh |
166 | 169 | run: | |
167 | 170 | New-Item -ItemType Directory -Path C:\PublishFiles -Force > $null |
168 | 171 | copy .\src\ST.Client.Desktop.Avalonia.App\bin\$env:Configuration\Publish\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.rpm C:\PublishFiles |
169 | | - echo "rpm_linux_arm64_SHA256=$(.\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.rpm)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 172 | + echo "rpm_linux_arm64_SHA256=$(.\packaging\GetSHA256.ps1 C:\PublishFiles\$env:ProjectName_linux_arm64_v${{ steps.tag.outputs.tag }}.rpm)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
170 | 173 | |
171 | 174 |
|
172 | 175 | - name: Create a new GitHub release |
|
0 commit comments