Update and rename Fix faulty link to README.md #120
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
name: Build Daily | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest # Can also use windows-latest, if needed | |
name: Shoko Desktop daily build | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup MSBuild Path | |
uses: warrenbuckley/Setup-MSBuild@v1 | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Restore NuGet Packages | |
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 | |
- 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 | |
run: | | |
curl --ftp-ssl -T ShokoDesktop.zip \ | |
--user ${{ secrets.FTP_USERNAME }}:${{ secrets.FTP_PASSWORD }} \ | |
ftps://${{ secrets.FTP_SERVER }}/files/shoko-desktop/daily/ShokoDesktop.zip --insecure |