From 54224e63d3203ff10c071797d76f03938c45daf3 Mon Sep 17 00:00:00 2001 From: Mahrud Sayrafi Date: Mon, 23 Oct 2023 03:30:27 -0500 Subject: [PATCH] switched to using GitHub Packages for storing bottles --- .github/workflows/publish.yml | 8 ++------ .github/workflows/tests.yml | 6 +----- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7d9b9e4..b0f2075 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,16 +6,13 @@ on: env: HOMEBREW_NO_INSTALL_FROM_API: 1 - -permissions: - actions: read - contents: write - pull-requests: write + HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: pr-pull: if: contains(github.event.pull_request.labels.*.name, 'pr-pull') runs-on: ubuntu-latest + permissions: write-all steps: - name: Set up Homebrew uses: Homebrew/actions/setup-homebrew@master @@ -25,7 +22,6 @@ jobs: - name: Pull bottles env: - HOMEBREW_NO_INSTALL_FROM_API: 1 HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }} HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }} HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 71a5008..a86d3b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,17 +32,13 @@ jobs: # query whether all dependencies are bottled - run: brew unbottled Macaulay2 - - name: Install Homebrew Bundler RubyGems - if: steps.cache.outputs.cache-hit != 'true' - run: brew install-bundler-gems - - run: brew test-bot --only-cleanup-before - run: brew test-bot --only-setup - run: brew test-bot --only-tap-syntax - - run: brew test-bot --only-formulae --verbose + - run: brew test-bot --only-formulae --verbose --root-url=https://ghcr.io/v2/macaulay2/tap if: github.event_name == 'pull_request' - name: Upload bottles as artifact