From 612317fc3e670072ca3b83cee61eedabada1fe74 Mon Sep 17 00:00:00 2001 From: Fingertips Date: Sun, 19 Jan 2025 11:00:24 +0800 Subject: [PATCH] cd: setup git identity and use workflow search --- .github/workflows/deploy.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 83a56cc..b8c5e78 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -17,16 +17,23 @@ jobs: with: name: dist-artifact github-token: ${{ github.token }} - run-id: ${{ vars.RUN_ID }} + workflow: build.yaml + workflow_search: true + workflow_conclusion: success path: dist/ + - name: Setup Git Identity + run: | + git config --global user.name "GitHub Actions" + git config --global user.email "actions@github.com" + - name: Setup Node uses: actions/setup-node@v4 with: node-version: latest - name: Install gh-pages - run: npm install -g gh-pages + run: npm install gh-pages - name: Deploy to GitHub Pages run: npm run deploy