Skip to content

Commit

Permalink
ci(docs): fetch all git history for proper authorship attribution (#6130
Browse files Browse the repository at this point in the history
)

Co-authored-by: Batuhan Wilhelm <[email protected]>
  • Loading branch information
aliemir and BatuhanW authored Jul 11, 2024
1 parent cbb793e commit 58cc1d9
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- "documentation/**"
- ".github/workflows/documentation.yml"
push:
branches:
- master
Expand Down Expand Up @@ -32,6 +33,8 @@ jobs:
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
version: 9
Expand Down Expand Up @@ -70,21 +73,11 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "pankod-bot"
LIVE_PREVIEW_URL=https://cloud2.refine.dev/.refine/preview pnpm run deploy
- name: Wait for Netlify Deploy (Live Previews)
uses: probablyup/[email protected]
id: waitForDeployment
if: github.ref != 'refs/heads/master'
continue-on-error: true
with:
site_id: ${{ secrets.NETLIFY_PREVIEW_SITE_ID }}
max_timeout: 1200
env:
NETLIFY_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- name: Build Documentation
if: github.ref != 'refs/heads/master'
run: |
cd documentation
LIVE_PREVIEW_URL=${{ steps.waitForDeployment.outputs.url }}/preview pnpm build
LIVE_PREVIEW_URL=https://cloud2.refine.dev/.refine/preview pnpm build
- name: Deploy to Netlify
if: github.ref != 'refs/heads/master'
id: netlify-deploy
Expand Down

0 comments on commit 58cc1d9

Please sign in to comment.