mirror of
https://github.com/zensical/zensical.git
synced 2026-05-04 10:00:45 +00:00
Merge pull request #13 from zensical/ghpages
zensical:fix - GH Action not working, not created
This commit is contained in:
+9
-3
@@ -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
|
||||
|
||||
@@ -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")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user