Skip to content

Commit

Permalink
Prevent docs upload failure in repo forks
Browse files Browse the repository at this point in the history
  • Loading branch information
parker-research committed Feb 11, 2025
1 parent b4a74b0 commit ec49886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
tar -czvf slang.tar.gz build/docs build/bin/slang
- name: Upload
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.repository == 'MikePopoloski/slang'
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_DEPLOY_HOST }}
Expand All @@ -44,7 +44,7 @@ jobs:
source: slang.tar.gz
target: upload/
- name: Deploy
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && github.repository == 'MikePopoloski/slang'
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_DEPLOY_HOST }}
Expand Down

0 comments on commit ec49886

Please sign in to comment.