-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74d97aa
commit e971168
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest # Can also use windows-latest, if needed | ||
runs-on: windows-latest | ||
|
||
name: Shoko Desktop daily build | ||
|
||
|
@@ -17,25 +17,25 @@ jobs: | |
submodules: recursive | ||
|
||
- name: Setup MSBuild Path | ||
uses: warrenbuckley/Setup-MSBuild@v1 | ||
uses: warrenbuckley/Setup-MSBuild@v1 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
|
||
- name: Restore NuGet Packages | ||
run: nuget restore Shoko.Desktop.sln | ||
run: nuget restore Shoko.Desktop.sln | ||
|
||
- name: Build | ||
run: msbuild Shoko.Desktop.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile | ||
|
||
- name: Archive Release | ||
run: zip -r ShokoDesktop.zip Shoko.Desktop/bin/Release | ||
run: Compress-Archive -Path Shoko.Desktop/bin/Release -DestinationPath ShokoDesktop.zip | ||
|
||
- name: Upload Daily Build to FTPS Server | ||
env: | ||
FTP_USERNAME: ${{ secrets.FTP_USERNAME }} | ||
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} | ||
FTP_SERVER: ${{ secrets.FTP_SERVER }} # The server IP or domain | ||
FTP_SERVER: ${{ secrets.FTP_SERVER }} | ||
run: | | ||
curl --ftp-ssl -T ShokoDesktop.zip \ | ||
--user ${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }} \ | ||
|