mirror of
https://github.com/phranck/TUIkit.git
synced 2026-05-21 09:50:35 +00:00
Fix: Create public directory for GitHub Pages deployment
- Prepare deployment directory that combines docs/ and docs-api/ - Copy landing page and documentation to public/ directory - Use public/ as artifact path for GitHub Pages - Ensures both landing page and docs are deployed correctly
This commit is contained in:
@@ -32,10 +32,19 @@ jobs:
|
||||
- name: Create .nojekyll file
|
||||
run: touch ./docs/.nojekyll
|
||||
|
||||
- name: Prepare deployment directory
|
||||
run: |
|
||||
# Create a public directory with both docs and docs-api
|
||||
mkdir -p public
|
||||
cp -r docs/* public/
|
||||
cp -r docs-api public/
|
||||
cp -r docs-api/* public/docs-api/ 2>/dev/null || true
|
||||
touch public/.nojekyll
|
||||
|
||||
- name: Upload Pages artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: '.'
|
||||
path: './public'
|
||||
|
||||
deploy:
|
||||
needs: build-docs
|
||||
|
||||
Reference in New Issue
Block a user