Skip to content

Commit 52cf66b

Browse files
committed
Fix docs deployment to use main branch instead of tags
- Change workflow trigger from all pushes to main branch only - Remove tag-based version extraction that was causing deployment failures - This resolves GitHub Pages environment protection rules that only allow main branch deployments
1 parent f05ac86 commit 52cf66b

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
name: Docs
22

3-
on: [push]
4-
#on:
5-
# push:
6-
# tags:
7-
# - 'v*'
3+
on:
4+
push:
5+
branches:
6+
- main
87

98
jobs:
109
deploy-docs:
@@ -39,20 +38,11 @@ jobs:
3938
run: npm install --force
4039
working-directory: docs
4140

42-
- name: Extract version from tag
43-
id: version
44-
run: |
45-
TAG=${GITHUB_REF#refs/tags/}
46-
VERSION=${TAG#v}
47-
echo "version=$VERSION" >> $GITHUB_OUTPUT
48-
echo "tag=$TAG" >> $GITHUB_OUTPUT
49-
5041
- name: Build documentation
5142
run: npm run build
5243
working-directory: docs
5344
env:
5445
NODE_ENV: production
55-
VITE_VERSION: ${{ steps.version.outputs.version }}
5646

5747
- name: Setup Pages
5848
uses: actions/configure-pages@v4

0 commit comments

Comments
 (0)