diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab362a5..dbf532b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -152,21 +152,11 @@ jobs: ${{ steps.cargo-dist.outputs.paths }} ${{ env.BUILD_MANIFEST_NAME }} - custom-build-ui: - needs: - - plan - if: ${{ needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload' }} - uses: ./.github/workflows/build-ui.yml - with: - plan: ${{ needs.plan.outputs.val }} - secrets: inherit - # Build and package all the platform-agnostic(ish) things build-global-artifacts: needs: - plan - build-local-artifacts - - custom-build-ui runs-on: "ubuntu-20.04" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -204,15 +194,24 @@ jobs: path: | ${{ steps.cargo-dist.outputs.paths }} ${{ env.BUILD_MANIFEST_NAME }} + + custom-build-ui: + needs: + - plan + - build-local-artifacts + uses: ./.github/workflows/build-ui.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit # Determines if we should publish/announce host: needs: - plan - build-local-artifacts - - custom-build-ui - build-global-artifacts + - custom-build-ui # Only run if we're "publishing", and only if local and global didn't fail (skipped is fine) - if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') && (needs.custom-build-ui.result == 'skipped' || needs.custom-build-ui.result == 'success') }} + if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-build-ui.result == 'skipped' || needs.custom-build-ui.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} runs-on: "ubuntu-20.04" diff --git a/Cargo.toml b/Cargo.toml index 60c246c..cc8eb6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,5 +50,5 @@ targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux- pr-run-mode = "plan" # Whether to install an updater program install-updater = true -# Local artifacts jobs to run in CI -local-artifacts-jobs = ["./build-ui"] +# Global artifacts jobs to run in CI +global-artifacts-jobs = ["./build-ui"]