From 7a6d0a6bc38c0b4f5b1146fa5f6213c4471d5bad Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Wed, 15 Jan 2025 10:37:47 -0500 Subject: [PATCH] ci: add mono via apt --- .github/workflows/build-test-publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index ecaa762..da47bb7 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -70,8 +70,15 @@ jobs: - name: setup mono run: | - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" - brew install mono + sudo apt install dirmngr ca-certificates gnupg + sudo gpg --homedir /tmp --no-default-keyring --keyring \ + /usr/share/keyrings/mono-official-archive-keyring.gpg \ + --keyserver hkp://keyserver.ubuntu.com:80 \ + --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ + echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian stable-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list + sudo apt update + sudo apt install -y mono-complete + - name: Publish to Nuget run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey $NUGET_API_KEY