Skip to content

Commit 620683d

Browse files
committed
Add separate action to deploy from main
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent 6d8426c commit 620683d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/pages.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ jobs:
3535
- run: npm run build
3636

3737
- uses: rossjrw/pr-preview-action@v1
38-
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
38+
if: ${{ github.event_name == 'pull_request' }}
3939
with:
4040
source-dir: .vitepress/dist
41+
42+
- uses: JamesIves/github-pages-deploy-action@v4
43+
if: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' }}
44+
with:
45+
folder: .vitepress/dist
46+
branch: gh-pages
47+
clean-exclude: pr-preview
48+
force: false

0 commit comments

Comments
 (0)