From bbb36615a447fa16cd4c481ed2acf7f387e69fc9 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Mon, 16 Oct 2023 12:09:46 -0400 Subject: [PATCH] Update homebrew workflow --- .github/workflows/deploy_homebrew.yml | 24 ++++++++++++++++++++++++ .github/workflows/deploy_macos.yml | 19 +------------------ .github/workflows/release.yml | 17 ++--------------- 3 files changed, 27 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/deploy_homebrew.yml diff --git a/.github/workflows/deploy_homebrew.yml b/.github/workflows/deploy_homebrew.yml new file mode 100644 index 00000000..cef249da --- /dev/null +++ b/.github/workflows/deploy_homebrew.yml @@ -0,0 +1,24 @@ +name: Deploy Homebrew + +on: + workflow_dispatch: + +jobs: + deploy-homebrew: + name: Update Homebrew + runs-on: macos-latest + env: + PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} + GITHUB_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Prepare environment + uses: ./.github/actions/prepare + + - name: Deploy homebrew + run: dart run grinder pkg-homebrew-update + + + diff --git a/.github/workflows/deploy_macos.yml b/.github/workflows/deploy_macos.yml index 1eede630..d5c69304 100644 --- a/.github/workflows/deploy_macos.yml +++ b/.github/workflows/deploy_macos.yml @@ -19,21 +19,4 @@ jobs: uses: ./.github/actions/prepare - name: Deploy Github Mac - run: dart run grinder pkg-github-macos - - update-homebrew: - name: Update Homebrew - runs-on: macos-latest - needs: deploy-macos - env: - PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} - GITHUB_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Prepare environment - uses: ./.github/actions/prepare - - - + run: dart run grinder pkg-github-macos \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b8097cb..f2744a9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,21 +73,8 @@ jobs: - name: Deploy Github Mac run: dart run grinder pkg-github-macos - update-homebrew: - name: Update Homebrew - runs-on: macos-latest - needs: deploy-macos - env: - PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} - GITHUB_TOKEN: ${{ secrets.HOMEBREW_FVM_GH_TOKEN }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Prepare environment - uses: ./.github/actions/prepare - - + - name: Deploy Homebrew + run: dart run grinder pkg-homebrew-update