Skip to content

Commit

Permalink
ci: Allow building/releasing a specific plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Sep 24, 2024
1 parent 0110446 commit 2523955
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,41 @@ on:
type: boolean
default: true
description: Append version suffix
plugin-name:
description: Build specific plugin
type: choice
options:
- '' # all plugins
- citadel
- cloud_captchas
- livesync
- livesync_debug
- owncloud
- payment_manual
- payment_paypal
- payment_sixpay
- piwik
- previewer_code
- previewer_jupyter
- prometheus
- storage_s3
- themes_legacy
- ursh
- vc_dummy
- vc_zoom

permissions:
contents: read

jobs:
build:
name: Build plugins 🏗
uses: indico/indico-gh-actions/.github/workflows/build-plugins.yml@master
uses: ThiefMaster/indico-gh-actions/.github/workflows/build-plugins.yml@master
with:
scripts-repo: ThiefMaster/indico-gh-actions
directory: 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 📦
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,31 @@ on:
- '!v3.2'
- '!v3.2.*'
- '!*\+docs'
workflow_dispatch:
inputs:
plugin-name:
description: Plugin name
required: true
type: choice
options:
- '' # this is invalid for a `required` dropdown so we force a choice instead of preselecting the first one
- citadel
- cloud_captchas
- livesync
- livesync_debug
- owncloud
- payment_manual
- payment_paypal
- payment_sixpay
- piwik
- previewer_code
- previewer_jupyter
- prometheus
- storage_s3
- themes_legacy
- ursh
- vc_dummy
- vc_zoom

permissions:
contents: read
Expand All @@ -34,14 +59,17 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
- name: Check version 🔍
run: python .github/utils/check_version.py "${GITHUB_REF#refs/tags/v}"
if: github.event_name != 'workflow_dispatch'

build:
name: Build plugins 🏗
needs: check-version
uses: indico/indico-gh-actions/.github/workflows/build-plugins.yml@master
uses: ThiefMaster/indico-gh-actions/.github/workflows/build-plugins.yml@master
with:
scripts-repo: ThiefMaster/indico-gh-actions
directory: public
add-version-suffix: false
plugin: ${{ github.event_name == 'workflow_dispatch' && inputs.plugin-name }}

test-install:
name: Test installing plugins
Expand Down

0 comments on commit 2523955

Please sign in to comment.