-
Notifications
You must be signed in to change notification settings - Fork 26
86 lines (81 loc) · 1.99 KB
/
build.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Build
env:
PYTHON_VERSION: '3.12'
TZ: Europe/Zurich
on:
push:
branches:
- 'master'
- '*.x'
pull_request:
branches:
- 'master'
- '*.x'
types:
- opened
- reopened
- synchronize
- labeled
workflow_dispatch:
inputs:
add-version-suffix:
type: boolean
default: true
description: Append version suffix
plugin-name:
description: Build specific plugin
type: choice
options:
- '' # all plugins
- access_override
- audiovisual
- burotel
- cern_access
- conversion
- cronjobs_cern
- foundationsync
- i18n_demo
- labotel
- outlook
- payment_cern
- ravem
- room_assistance
- themes_cern
- themes_lcagenda
- vc_assistance
- zoom_rooms
permissions:
contents: read
jobs:
build:
name: Build plugins 🏗
uses: indico/indico-gh-actions/.github/workflows/build-plugins.yml@master
with:
directory: cern
extra-plugins-repo: indico/indico-plugins
extra-plugins-dir: public
add-version-suffix: ${{ github.event_name != 'workflow_dispatch' || inputs.add-version-suffix }}
plugin: ${{ github.event_name == 'workflow_dispatch' && inputs.plugin-name }}
bundle:
name: Bundle wheels 📦
needs: build
runs-on: ubuntu-22.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
pattern: plugin-wheel-*
path: dist
- name: List artifacts 📃
run: ls -al dist/
- uses: actions/upload-artifact@v4
name: Upload build artifacts 📦
with:
name: plugin-wheels
retention-days: 7
path: dist
- name: Delete individual artifacts 🚮
uses: geekyeggo/delete-artifact@v5
with:
name: plugin-wheel-*