From f5f777b54bf9fee842e172eb9dea990f45277812 Mon Sep 17 00:00:00 2001 From: Jing Hua Date: Fri, 14 Apr 2023 15:41:10 +0800 Subject: [PATCH] update workflow for google drive sync --- .github/workflows/deploy.yml | 8 +++++--- .github/workflows/publish.yml | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 87bb174..7a6a96d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ permissions: id-token: write concurrency: - group: "pages" + group: 'pages' cancel-in-progress: true jobs: @@ -33,12 +33,14 @@ jobs: - name: Build website run: yarn build + env: + VITE_GOOGLE_CLIENT_ID: ${{ secrets.GCLIENT }} - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: path: './dist' - + - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 \ No newline at end of file + uses: actions/deploy-pages@v1 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 337c8fc..0faa152 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,3 +27,4 @@ jobs: run: yarn make env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VITE_GOOGLE_CLIENT_ID: ${{ secrets.GCLIENT }}