-
Notifications
You must be signed in to change notification settings - Fork 25
42 lines (32 loc) · 1.18 KB
/
daily.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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