mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 23:57:20 +08:00
Update GitHub Pages workflow to use website directory
The workflow now copies built docs into the 'website' directory using rsync and uploads 'website' as the artifact instead of '.vitepress/dist'. This allows for additional processing or customization of the deployment directory.
This commit is contained in:
@@ -35,12 +35,14 @@ jobs:
|
||||
run: npm install --no-package-lock
|
||||
- name: Build docs
|
||||
run: npm run docs:build
|
||||
- name: Copy docs into website
|
||||
run: rsync -a --exclude 'api/' .vitepress/dist/ website/
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v5
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: './.vitepress/dist'
|
||||
path: './website'
|
||||
# Single deploy job since we're just deploying
|
||||
deploy:
|
||||
needs: build
|
||||
|
||||
Reference in New Issue
Block a user