Update build_debian.yaml

pull/25923/head
Michael Telatynski 2023-08-04 09:46:10 +01:00 committed by GitHub
parent 030b1fb339
commit 1093b41d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -17,27 +17,27 @@ jobs:
- name: Prepare
run: |
mkdir debian/DEBIAN
mv debian/* debian/DEBIAN/
mkdir -p debian/usr/share/element-web/
mkdir -p /tmp/element-web-debian/DEBIAN
cp -R debian/ /tmp/element-web-debian/DEBIAN/
mkdir -p /tmp/element-web-debian/usr/share/element-web/
wget https://github.com/vector-im/element-web/releases/download/$VERSION/element-$VERSION.tar.gz
mv element-* debian/usr/share/element-web
mv debian/usr/share/element-web/config.sample.json debian/usr/share/element-web/config.json
mv element-* /tmp/element-web-debian/usr/share/element-web
mv debian/usr/share/element-web/config.sample.json /tmp/element-web-debian/usr/share/element-web/config.json
env:
VERSION: ${{ github.ref_name }}
- name: Build deb package
run: |
VERSION=$(cat package.json | jq -r .version)
chmod -R u=rw,go=r debian/usr/share/element-web/
dpkg-deb -Zxz --root-owner-group -VVersion=$VERSION --build debian element-web.deb
chmod -R u=rw,go=r /tmp/element-web-debian/usr/share/element-web/
dpkg-deb -Zxz --root-owner-group -VVersion=$VERSION --build /tmp/element-web-debian element-web.deb
# For now just upload the artifact to github
- uses: actions/upload-artifact@v3
with:
name: element-io-archive-keyring
path: element-io-archive-keyring.deb
name: debs
path: "*.deb"
retention-days: 14
#- name: Upload incoming deb