Skip to content

Commit 445fe5a

Browse files
authored
Update docs-deploy.yml (#78)
1 parent 85bbe01 commit 445fe5a

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
name: Deploy Documentation
22

33
on:
4-
push:
5-
branches:
6-
- docs-build
7-
paths:
8-
- docs/**
9-
- src/**
104
workflow_dispatch:
115

126
jobs:
137
docs:
14-
uses: codeshelldev/gh-actions/.github/workflows/docs-deploy.yml@main
15-
name: Deploy
16-
with:
17-
branch: docs-build
18-
secrets:
19-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Deploy Documentation
12+
if: ${{ github.ref == 'refs/heads/main' }}
13+
run: |
14+
echo "❌ This workflow cannot be run from the main branch."
15+
echo "Please pin to a release, use another branch or commit SHA instead of @main."
16+
exit 1

0 commit comments

Comments
 (0)