Skip to content

Commit

Permalink
try new job
Browse files Browse the repository at this point in the history
  • Loading branch information
seanwuapps committed Dec 18, 2023
1 parent b74c569 commit 4e6b436
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4e6b436

Please sign in to comment.