Skip to content

Commit 7da5bd2

Browse files
committed
ci: try to build deb package
1 parent 4b7f802 commit 7da5bd2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build-deb.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- github-ci
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
container: debian:12
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: build .deb files
20+
run: |
21+
apt install -y git-buildpackage build-essential debhelper-compat default-libmysqlclient-dev krb5-multidev libapparmor-dev libbz2-dev libcap-dev libdb-dev libexpat-dev libexttextcat-dev libicu-dev libldap2-dev liblua5.4-dev liblz4-dev liblzma-dev libpam0g-dev libpq-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libstemmer-dev libsystemd-dev libwrap0-dev libzstd-dev pkg-config zlib1g-dev
22+
DEB_BUILD_OPTIONS=nocheck gbp buildpackage --git-no-pristine-tar -us -uc
23+
mkdir -p "$HOME/.ssh"
24+
echo "${{ secrets.KEY }}" > "$HOME/.ssh/key"
25+
chmod 600 "$HOME/.ssh/key"
26+
rsync -rILvh -e "ssh -i $HOME/.ssh/key -o StrictHostKeyChecking=no" $GITHUB_WORKSPACE/build-area "${{ secrets.USERNAME }}@chatmail.at:/var/www/html/staging.chatmail.at/"
27+

0 commit comments

Comments
 (0)