forked from Controls/gitea-pages
playing with workflow
This commit is contained in:
@@ -12,25 +12,13 @@ jobs:
|
||||
container:
|
||||
image: gitea.psi.ch/images/alpine-zensical
|
||||
steps:
|
||||
- name: Install node
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y nodejs git
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: docs
|
||||
|
||||
- name: Verify Python version
|
||||
run: pip3 install mkdocs-material mkdocs-glightbox
|
||||
|
||||
- name: copy config
|
||||
run: |
|
||||
mv docs/.git .
|
||||
mv docs/mkdocs.yml .
|
||||
- name: Build Documentation
|
||||
run: mkdocs build --site-dir public
|
||||
- name: Build page
|
||||
run: /opt/python-env/bin/zensical build
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
@@ -39,14 +27,10 @@ jobs:
|
||||
|
||||
- name: Push to gitea-pages branch
|
||||
run: |
|
||||
# pwd
|
||||
# ls -la
|
||||
# mkdir deploy
|
||||
# cd deploy
|
||||
git checkout --orphan gitea-pages
|
||||
git reset --hard
|
||||
mv public/* .
|
||||
git add .
|
||||
git commit -m "Deploy site"
|
||||
git commit -m "Update site - $(date)"
|
||||
git push -f https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/Controls/gitea-pages.git gitea-pages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user