@@ -26,14 +26,20 @@ jobs:
26
26
- name : build
27
27
run : |
28
28
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"
29
33
DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar --git-ignore-branch -us -uc
30
34
31
35
- name : upload .deb files
32
36
run : |
33
37
mkdir -p "$HOME/.ssh"
34
38
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
35
39
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/"
37
43
38
44
staging-arm :
39
45
runs-on : ubuntu-24.04-arm
@@ -54,13 +60,18 @@ jobs:
54
60
- name : build
55
61
run : |
56
62
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"
57
67
DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar --git-ignore-branch -us -uc
58
68
59
69
- name : upload .deb files
60
70
run : |
61
71
mkdir -p "$HOME/.ssh"
62
72
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
63
73
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/"
66
77
0 commit comments