From e54648383482cfa88d65c226173ad70ce89ff339 Mon Sep 17 00:00:00 2001 From: dorthl Date: Mon, 19 Jun 2023 15:33:32 +0800 Subject: [PATCH] dotnet global.json --- .github/workflows/build.yml | 10 ++++++++-- global.json | 5 +++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d13c6345b..7e9d582d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,11 +26,17 @@ jobs: restore-keys: | ${{ runner.os }}-node + - uses: actions/cache@v2 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} + restore-keys: | + ${{ runner.os }}-nuget- + - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' - cache: true + dglobal-json-file: global.json - name: Publish Blogifier run: dotnet publish -c Release /p:RuntimeIdentifier=linux-x64 ./src/Blogifier/Blogifier.csproj --output dist diff --git a/global.json b/global.json new file mode 100644 index 000000000..e383752a1 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "version": "7.0.304" + } +}