From ad04daeb752f174e9772494a1dc397e1542a965b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 14 Jan 2024 21:57:06 +0100 Subject: [PATCH] setup java in build and restore in docs --- .github/workflows/main.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d28d50c..314c4a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,14 +11,17 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'microsoft' + java-version: '11' - name: Setup Android SDK uses: android-actions/setup-android@v3 - - name: Restore - run: dotnet tool restore - name: Run cake uses: coactions/setup-xvfb@v1 with: - run: dotnet cake --target Publish --branch $GITHUB_REF_NAME + run: dotnet tool restore && dotnet cake --target Publish --branch $GITHUB_REF_NAME env: nuget_key: ${{ secrets.NUGET_KEY }} baget_key: ${{ secrets.BAGET_KEY }} @@ -34,7 +37,7 @@ jobs: with: dotnet-version: '8.0.x' - name: Run cake - run: dotnet cake --target Document --branch $GITHUB_REF_NAME + run: dotnet tool restore && 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