--- name: Build Stable ISOs on: merge_group: pull_request: branches: - main paths: - ".github/workflows/build-iso-stable.yml" - ".github/workflows/reusable-build-iso-anaconda.yml" - ".github/setup-runner-keys.sh" - "ghcr.io-ublue-os.pub" - "iso_files/**" workflow_dispatch: inputs: upload_artifacts: description: 'Upload ISOs as job artifacts' type: boolean default: false upload_r2: description: 'Upload ISOs to Cloudflare R2' type: boolean default: true schedule: - cron: "0 3 1 * *" # Push to testing bucket on the 1st day of the month at 03:00 UTC jobs: build-iso-stable: name: Build Stable ISOs uses: ./.github/workflows/reusable-build-iso-anaconda.yml secrets: inherit with: # Upload artifacts on PR checks or if manually requested upload_artifacts: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && inputs.upload_artifacts) }} # Upload to R2 on merge_group, scheduled runs, or if manually requested upload_r2: ${{ github.event_name == 'merge_group' || github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.upload_r2) }}