This commit is contained in:
parent
04254fbc30
commit
c8d65ccb92
1 changed files with 6 additions and 7 deletions
|
|
@ -21,13 +21,12 @@ steps:
|
|||
deploy-site:
|
||||
image: alpine/git
|
||||
commands:
|
||||
- cd /woodpecker/src/git.polarolouis.fr/polarolouis/site-perso/public
|
||||
- git init
|
||||
- git config --global init.defaultBranch main
|
||||
- git config user.name "CI Bot"
|
||||
- git config user.email "ci@example.com"
|
||||
- git remote add origin "$DEPOT_PAGES"
|
||||
- git add .
|
||||
- cd /woodpecker/src/git.polarolouis.fr/polarolouis/
|
||||
- git clone "$DEPOT_PAGES"
|
||||
- rm -Rf "$DEPOT_PAGES/*"
|
||||
- cp -r site-perso/* "$DEPOT_PAGES/"
|
||||
- cd "$DEPOT_PAGES"
|
||||
- git config user.name "Woodpecker CI"
|
||||
- git commit -m "Deploy site"
|
||||
- git push -f origin main
|
||||
environment:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue