forked from bigbluebutton/bigbluebutton-room-media-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.5 KB
/
build-plugin-deb-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
name: 📦 Build .deb-package for html-plugin
on:
push:
branches: [ "main"]
paths:
- 'html-plugin/**'
pull_request:
branches: [ "main" ]
paths:
- 'html-plugin/**'
jobs:
build-deb-package:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./html-plugin
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install build dependencies
run: sudo ./.setup-build-dependencies.sh
- run: node --version
- name: Build Debian package
run: sudo dpkg-buildpackage -us -uc
- name: Upload Debian Package
uses: actions/upload-artifact@v4
with:
name: html-plugin-ubuntu-22.04
path: "${{ github.workspace }}/*.deb"
release:
name: "Upload assets to release"
needs: build-deb-package
runs-on: ubuntu-latest
if: ${{ github.ref_type == 'tag' }}
permissions:
contents: write
actions: read
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: html-plugin-ubuntu-22.04
path: html-plugin-ubuntu-22.04
- name: Create release asset archives
run: zip --junk-paths --recurse-paths --compression-method store "html-plugin-ubuntu-22.04.zip" "html-plugin-ubuntu-22.04"
- name: Upload release assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.ref_name }} "html-plugin-ubuntu-22.04.zip"