Skip to content

Commit 366e151

Browse files
committed
CI: remove workflows before building
1 parent 7e9f8bf commit 366e151

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/build-staging-deb.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

ChangeLog

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
2025-07-22 15:27:09 +0000 missytake <[email protected]> (429a5f971)
2-
3-
CI: build .deb and upload to download.delta.chat
4-
5-
6-
M .github/workflows/build-deb.yml
7-
M .github/workflows/build-deb-staging.yml
8-
91
2023-08-28 15:27:09 +0000 Marco Bettini <[email protected]> (47349e2482)
102

113
mail-crypt: mail_crypt_mailbox_allocated() - Force cross-user copies to

0 commit comments

Comments
 (0)