From 571e074d586bbc12097fd8d1acb7036eff6b3e4f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 14 Jan 2024 22:02:53 +0100 Subject: [PATCH] clean up restore step --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57d41e2..0ccccb0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,10 +18,12 @@ jobs: distribution: 'temurin' - name: Setup Android SDK uses: android-actions/setup-android@v3 + - name: Restore tools + run: dotnet tool restore - name: Run cake uses: coactions/setup-xvfb@v1 with: - run: dotnet tool restore && dotnet cake --target Publish --branch $GITHUB_REF_NAME + run: dotnet cake --target Publish --branch $GITHUB_REF_NAME env: nuget_key: ${{ secrets.NUGET_KEY }} baget_key: ${{ secrets.BAGET_KEY }} @@ -36,8 +38,10 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' + - name: Restore tools + run: dotnet tool restore - name: Run cake - run: dotnet tool restore && dotnet cake --target Document --branch $GITHUB_REF_NAME + run: dotnet cake --target Document --branch $GITHUB_REF_NAME - name: Deploy if: github.event_name == 'push' && github.ref_name == 'release' # this is a beautiful way to deploy a website and i will not take any criticism