From 4e6b436ee734308ed0e0044562e6ed4146493167 Mon Sep 17 00:00:00 2001 From: Sean Wu Date: Mon, 18 Dec 2023 19:46:27 +1100 Subject: [PATCH] try new job --- .github/workflows/release.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3054346..c055b04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,14 +84,27 @@ jobs: # run: pnpm run release # working-directory: ./packages/vue - # push to doc site repo to trigger vercel deployment - - name: Deploy to docs site + docsite: + name: Deploy docsite + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + repository: getgoui/docsite + fetch-depth: 0 + token: ${{ secrets.BOT_TOKEN }} + + - name: git config run: | - echo "Clone docs site repo" - git clone --branch=main https://${{ secrets.BOT_USERNAME }}:${{ secrets.BOT_TOKEN }}@github.com/getgoui/docsite.git docsite - cd docsite + git config --global user.name "${{ secrets.BOT_USERNAME }}" + git config --global user.email "${{ secrets.BOT_EMAIL }}" + # push to doc site repo to trigger vercel deployment + - name: Push to trigger deployment + run: | echo "Add and commit changes" git add . git commit --allow-empty -m 'chore: trigger latest doc site deployment' + git config --unset-all http.https://github.com/.extraheader git push origin main -f