Merge pull request #13 from zensical/ghpages

zensical:fix - GH Action not working, not created
This commit is contained in:
Martin Donath
2025-11-06 13:42:09 +01:00
committed by GitHub
2 changed files with 18 additions and 5 deletions
+9 -3
View File
@@ -1,21 +1,27 @@
name: docs
name: Documentation
on:
push:
branches:
- master
- main
permissions:
contents: write
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/configure-pages@v5
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install zensical
- run: zensical build
- run: zensical build --clean
- uses: actions/upload-pages-artifact@v4
with:
path: site
+9 -2
View File
@@ -168,10 +168,17 @@ def new_project(directory: str | None, **kwargs):
os.makedirs(directory)
package_dir = os.path.dirname(os.path.abspath(__file__))
shutil.copy(os.path.join(package_dir, "bootstrap/zensical.toml"), directory)
shutil.copy(
os.path.join(package_dir, "bootstrap/zensical.toml"),
directory
)
shutil.copytree(
os.path.join(package_dir, "bootstrap/docs"),
os.path.join(directory, "docs"),
os.path.join(directory, "docs")
)
shutil.copytree(
os.path.join(package_dir, "bootstrap/.github"),
os.path.join(directory, ".github")
)