Skip to content

Commit

Permalink
.github/workflows: run docs workflow on pull requests
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Mar 4, 2024
1 parent ef0de83 commit 7858353
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ on:
- '.github/workflows/docs.yml'
- 'docs/**'
- 'packages/**'
pull_request:
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
- 'packages/**'

jobs:
build_and_deploy:
build_deploy:
name: ${{ github.ref == 'refs/heads/main' && 'Build and deploy' || 'Build' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -37,6 +43,7 @@ jobs:
run: yarn workspace @vertex-center/docs build

- uses: FirebaseExtended/action-hosting-deploy@v0
if: github.ref == 'refs/heads/main'
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_VERTEX_CENTER }}'
Expand Down

0 comments on commit 7858353

Please sign in to comment.