Skip to content

Commit

Permalink
chore: add USE_SSH to docs deploy workflow (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Jan 17, 2024
1 parent dc20a5e commit 2555dbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Check ref
if: ${{ github.ref != 'refs/heads/main' }}
run: |
echo "It looks like you're trying to execute a workflow not from the main branch."
exit 1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
Expand All @@ -21,7 +26,8 @@ jobs:
- name: Build
run: npm run docs:build
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
env:
USE_SSH: true
run: npm run docs:deploy


0 comments on commit 2555dbf

Please sign in to comment.