From 2f817ddc96247726372a85ba975a6ceeafdf5d03 Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:02:20 -0400 Subject: [PATCH] chore: update ci --- .github/workflows/release.yml | 12 ++++++++++++ Cargo.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a76991..a9f718a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -264,10 +264,21 @@ jobs: gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/* + custom-gen_changelog: + needs: + - plan + - build-local-artifacts + - build-global-artifacts + uses: ./.github/workflows/gen_changelog.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit + publish-homebrew-formula: needs: - plan - host + - custom-gen_changelog runs-on: "ubuntu-20.04" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -309,6 +320,7 @@ jobs: - plan - host - publish-homebrew-formula + - custom-gen_changelog # use "always() && ..." to allow us to wait for all publish jobs while # still allowing individual publish jobs to skip themselves (for prereleases). # "host" however must run to completion, no skipping allowed! diff --git a/Cargo.toml b/Cargo.toml index 41a0eba..2c1977e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ installers = ["shell", "powershell", "homebrew", "msi"] tap = "romancitodev/homebrew-tap" # Target platforms to build apps for (Rust target-triple syntax) targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] -# Build Changelog +# Host jobs to run in CI host-jobs = ["./gen_changelog"] # Publish jobs to run in CI publish-jobs = ["homebrew"]