@@ -26,14 +26,20 @@ jobs:
2626 - name : build
2727 run : |
2828 cd dovecot
29+ git rm -r .github
30+ git config --local user.name "test"
31+ git config --local user.email "[email protected] " 32+ git commit -am "CI: remove .github directory before building"
2933 DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar --git-ignore-branch -us -uc
3034
3135 - name : upload .deb files
3236 run : |
3337 mkdir -p "$HOME/.ssh"
3438 echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
3539 chmod 600 "$HOME/.ssh/key"
36- rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/build-area/ "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
40+ export branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
41+ mv $GITHUB_WORKSPACE/build-area staging-$branch
42+ rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" staging-$branch "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
3743
3844 staging-arm :
3945 runs-on : ubuntu-24.04-arm
@@ -54,13 +60,18 @@ jobs:
5460 - name : build
5561 run : |
5662 cd dovecot
63+ git rm -r .github
64+ git config --local user.name "test"
65+ git config --local user.email "[email protected] " 66+ git commit -am "CI: remove .github directory before building"
5767 DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar --git-ignore-branch -us -uc
5868
5969 - name : upload .deb files
6070 run : |
6171 mkdir -p "$HOME/.ssh"
6272 echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
6373 chmod 600 "$HOME/.ssh/key"
64- mv $GITHUB_WORKSPACE/build-area staging-$GITHUB_REF_NAME
65- rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" staging-$GITHUB_REF_NAME "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
74+ export branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
75+ mv $GITHUB_WORKSPACE/build-area staging-$branch
76+ rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" staging-$branch "${{ secrets.USERNAME }}@download.delta.chat:/var/www/html/download/dovecot/"
6677
0 commit comments