mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-10 07:05:14 +00: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
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue