Skip to content

Commit

Permalink
docs: only run the doc deploy step on main
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Aug 23, 2024
1 parent 08f4fd5 commit 0fef85c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ jobs:
run: pnpm build

- name: Generate Documentation
if: github.ref == 'refs/heads/main'
run: pnpm run generate-docs

- name: Commit and Push Documentation
if: github.ref == 'refs/heads/main'
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
Expand All @@ -68,7 +70,7 @@ jobs:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
# if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/developer/build
Expand Down

0 comments on commit 0fef85c

Please sign in to comment.