ci: Allow building/releasing a specific plugin #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- 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: 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 ๐ฆ | |
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-* |