Skip to content

CI Error when no files found #1

CI Error when no files found

CI Error when no files found #1

# Deploy for macOS

Check failure on line 1 in .github/workflows/job-deploy-macOS.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/job-deploy-macOS.yml

Invalid workflow file

(Line: 30, Col: 9): Unexpected value 'if-no-files-found'
#
name: macOS Deploy Workflow
on:
workflow_call:
inputs:
targetFramework:
type: string
required: true
configuration:
type: string
default: 'Release'
architecture:
type: string
default: 'x64'
jobs:
deploy:
name: deploy-macOS-${{ inputs.architecture }}-${{ inputs.configuration }}
runs-on: ${{ inputs.architecture == 'x64' && 'macos-13' || 'macos-latest' }}
steps:
- uses: actions/download-artifact@v4
with:
path: Result.Darwin.${{ inputs.architecture }}.${{ inputs.configuration }}
name: Build-macOS-${{ inputs.architecture }}-Release
- name: Publish Artifacts
uses: actions/upload-artifact@v4
if-no-files-found: error
with:
name: macOS-${{ inputs.architecture }}-${{ inputs.configuration }}
path: Result.Darwin.${{inputs.architecture}}.${{ inputs.configuration }}/bin