Update build_debian.yaml

This commit is contained in:
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

View File

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