From e1ccb6768986c02a9494584dd788f48c514a8e69 Mon Sep 17 00:00:00 2001 From: mitch1024 <156652908+mitch1024@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:49:56 +0800 Subject: [PATCH] Update deploy-docs.yml --- .github/workflows/deploy-docs.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 31b0e17a1..74055c12f 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -29,6 +29,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + sparse-checkout: 'docs/' + sparse-checkout-cone-mode: false # Configure Workload Identity Federation and generate an access token. - id: 'auth' @@ -58,9 +61,6 @@ jobs: with: cluster_name: ${{ secrets.GKE_CLUSTER }} location: ${{ secrets.GKE_REGION }} - - - name: Change Working Directory - working-directory: ./docs - name: Build and Push Docker Image uses: docker/build-push-action@v2 @@ -69,7 +69,7 @@ jobs: file: ./Dockerfile push: true tags: irisnet/docs:${{ github.sha }} - + - name: Deploy to GKE run: | gcloud container clusters get-credentials app --region ${{ secrets.GKE_REGION }} --project ${{ secrets.GKE_PROJECT }}