mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 09:15:41 +03:00
Update build_debian.yaml
This commit is contained in:
parent
030b1fb339
commit
1093b41d70
1 changed files with 9 additions and 9 deletions
18
.github/workflows/build_debian.yaml
vendored
18
.github/workflows/build_debian.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue