Remove all continue-on-error usages from CI workflows: - deploy.yml: replace continue-on-error on SSH deploy steps with if: secrets.SSH_PRIVATE_KEY != '' so steps are skipped (not failed) when the secret is absent - windows-nightly.yml: remove continue-on-error from job and steps (job is already disabled via if: false) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Windows Nightly
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 2 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
windows-nightly:
|
|
# Disabled until a self-hosted runner with label "windows-runner" is registered.
|
|
name: Build & Deploy Windows (Nightly)
|
|
runs-on: windows-runner
|
|
if: false
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Check for recent changes on main
|
|
run: |
|
|
$changes = git log --oneline --since "24 hours ago" origin/main
|
|
if (-not $changes) {
|
|
Write-Output "No changes in last 24 hours, skipping build."
|
|
Add-Content -Path $env:GITHUB_ENV -Value "SKIP_BUILD=true"
|
|
}
|
|
|
|
- name: Build Windows
|
|
if: env.SKIP_BUILD != 'true'
|
|
run: task build-windows-release
|
|
|
|
- name: Set up SSH key
|
|
if: env.SKIP_BUILD != 'true'
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
run: |
|
|
mkdir -p $env:USERPROFILE\.ssh
|
|
$env:SSH_PRIVATE_KEY | Out-File -FilePath "$env:USERPROFILE\.ssh\id_rsa" -Encoding ascii
|
|
icacls "$env:USERPROFILE\.ssh\id_rsa" /inheritance:r /grant:r "$env:USERNAME:F"
|
|
|
|
- name: Deploy Windows to server
|
|
if: env.SKIP_BUILD != 'true'
|
|
env:
|
|
SSH_USER: ${{ secrets.SSH_USER }}
|
|
SSH_HOST: ${{ secrets.SSH_HOST }}
|
|
run: task deploy-windows-to-server
|