From 2555dbf75bc01bf14430c3c6832fda4155606bf4 Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Wed, 17 Jan 2024 12:09:18 +0100 Subject: [PATCH] chore: add USE_SSH to docs deploy workflow (#385) --- .github/workflows/docs-deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 867f00c6..90fe2e67 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -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: @@ -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 \ No newline at end of file