We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f4674b commit 76e443aCopy full SHA for 76e443a
.github/workflows/npm-publish.yml
@@ -1,4 +1,4 @@
1
-name: Build and Publish
+name: Build, Publish and Deploy
2
3
on:
4
push:
@@ -64,3 +64,25 @@ jobs:
64
release_name: TaskFlow AI ${{ github.ref }}
65
draft: false
66
prerelease: false
67
+
68
+ deploy-docs:
69
+ needs: build
70
+ runs-on: ubuntu-latest
71
+ if: github.ref == 'refs/heads/main'
72
+ steps:
73
+ - uses: actions/checkout@v4
74
+ with:
75
+ ref: main
76
77
+ - name: Download artifact
78
+ uses: actions/download-artifact@v4
79
80
+ name: dist
81
+ path: dist/
82
83
+ - name: Deploy to GitHub Pages
84
+ uses: peaceiris/actions-gh-pages@v3
85
86
+ github_token: ${{ secrets.GITHUB_TOKEN }}
87
+ publish_dir: ./docs/.vitepress/dist
88
+ publish_branch: gh-pages
0 commit comments