Skip to content

Commit

Permalink
Update daily.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis authored Oct 12, 2024
1 parent 4ffabdd commit 88551c0
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,49 @@ on:
push:
branches:
- master
# pull_request:
# branches: [ master ]

jobs:
build:
runs-on: windows-latest

name: Shoko Desktop daily build
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
with:
submodules: recursive

- name: Setup MSBuild Path
uses: warrenbuckley/Setup-MSBuild@v1 # Ensure that the MSBuild version is compatible
uses: warrenbuckley/Setup-MSBuild@v1

- 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: Upload Artifact
uses: actions/[email protected]
with:
name: ShokoDesktop
path: Shoko.Desktop\bin\Release

- name: Archive Release
run: Compress-Archive -Path Shoko.Desktop/bin/Release -DestinationPath ShokoDesktop.zip
shell: pwsh
run: Compress-Archive .\\Shoko.Desktop\\bin\\Release .\\ShokoDesktop.zip

- name: Upload Daily Build to FTPS Server
- name: Upload Daily to shokoanime.com
shell: pwsh
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
run : .\\.github\\workflows\\UploadArchive.ps1

0 comments on commit 88551c0

Please sign in to comment.