name: Jan Build Electron Pre Release on: push: branches: - main paths: - "!README.md" jobs: # Job create Update app version based on latest release tag with build number and save to output get-update-version: uses: ./.github/workflows/template-get-update-version.yml build-macos: uses: ./.github/workflows/template-build-macos.yml secrets: inherit needs: [get-update-version] with: ref: ${{ github.ref }} public_provider: cloudflare-r2 new_version: ${{ needs.get-update-version.outputs.new_version }} build-windows-x64: uses: ./.github/workflows/template-build-windows-x64.yml secrets: inherit needs: [get-update-version] with: ref: ${{ github.ref }} public_provider: cloudflare-r2 new_version: ${{ needs.get-update-version.outputs.new_version }} build-linux-x64: uses: ./.github/workflows/template-build-linux-x64.yml secrets: inherit needs: [get-update-version] with: ref: ${{ github.ref }} public_provider: cloudflare-r2 new_version: ${{ needs.get-update-version.outputs.new_version }} noti-discord-nightly-and-update-url-readme: needs: [build-macos, build-windows-x64, build-linux-x64, get-update-version] secrets: inherit if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: ./.github/workflows/template-noti-discord-and-update-url-readme.yml with: ref: refs/heads/main build_reason: Nightly push_to_branch: main new_version: ${{ needs.get-update-version.outputs.new_version }}