fix: correct minor details for doc generation
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
# Exclude page pipeline to be run on "pages" branch
|
# Exclude page pipeline to be run on "pages" branch
|
||||||
when:
|
when:
|
||||||
branch:
|
event: [pull_request, push]
|
||||||
exclude: pages
|
|
||||||
event: [push, pull_request]
|
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
- name: git
|
- name: git
|
||||||
@@ -35,16 +33,17 @@ steps:
|
|||||||
# Git configuration
|
# Git configuration
|
||||||
- git config --global user.email "ci-test@example.com"
|
- git config --global user.email "ci-test@example.com"
|
||||||
- git config --global user.name "CI"
|
- git config --global user.name "CI"
|
||||||
- git clone -b pages https://$CODEBERG_TOKEN@codeberg.org/$CI_REPO.git $CI_REPO_NAME
|
- git clone https://$CODEBERG_TOKEN@codeberg.org/biboumi/pages.git pages
|
||||||
# Copy build step output to repository folder
|
# Copy build step output to repository folder
|
||||||
- cp -ar build/html $CI_REPO_NAME/
|
- cp -ar build/html/* pages/doc/
|
||||||
# Needed for custom domains
|
# Needed for custom domains
|
||||||
- cp .domains $CI_REPO_NAME || true # Ignore if it doesn't exist
|
- cp .domains pages || true # Ignore if it doesn't exist
|
||||||
# Commit and push all static files with pipeline started timestamp
|
# Commit and push all static files with pipeline started timestamp
|
||||||
- cd $CI_REPO_NAME
|
- cd pages
|
||||||
- git add .
|
- git add .
|
||||||
- git commit -m "CI ${CI_COMMIT_SHA}"
|
- git commit -m "CI ${CI_COMMIT_SHA}"
|
||||||
- git push
|
- git push
|
||||||
when:
|
when:
|
||||||
event: push
|
- event: push
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user