Update .woodpecker.yml

This commit is contained in:
David Lapshin
2024-02-07 14:42:08 +00:00
parent cd69d19ed7
commit b2fc375cef

View File

@ -25,6 +25,8 @@ steps:
# Must be set in Woodpecker configuration # Must be set in Woodpecker configuration
secrets: [ mail, codeberg_token ] secrets: [ mail, codeberg_token ]
commands: commands:
# Save .domains
- domains=$(cat .domains)
# Git configuration # Git configuration
- git config --global user.email $MAIL - git config --global user.email $MAIL
- git config --global user.name "Woodpecker CI" - git config --global user.name "Woodpecker CI"
@ -35,6 +37,8 @@ steps:
- git rm -r "*" - git rm -r "*"
# Copy build step output to repository folder # Copy build step output to repository folder
- cp -ar ../public/. . - cp -ar ../public/. .
# Add .domains back
- echo $domains > .domains
# Commit and push all static files with source commit SHA # Commit and push all static files with source commit SHA
- git add --all - git add --all
- git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]" - git commit -m "Woodpecker CI ${CI_COMMIT_SHA} [SKIP CI]"