Update daily.yml #122
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: windows-latest | |
name: Shoko Desktop daily build | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup MSBuild Path | |
uses: warrenbuckley/Setup-MSBuild@v1 # Ensure that the MSBuild version is compatible | |
- name: Setup NuGet | |
uses: NuGet/[email protected] | |
- name: Restore NuGet Packages | |
run: nuget restore Shoko.Desktop.sln | |
- name: Set up MSBuild Environment Path # Use environment files to add MSBuild to PATH | |
run: | | |
echo "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin" >> $GITHUB_PATH | |
- name: Build | |
run: msbuild Shoko.Desktop.sln /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=FolderProfile | |
- name: Archive 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 }} | |
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 |