Unify release and example-plugin CI workflows

This commit is contained in:
Demetrius Kanios 2026-08-03 16:18:59 -07:00
parent e661e4de6a
commit 1c3f9f412f
2 changed files with 11 additions and 28 deletions

View File

@ -1,22 +0,0 @@
name: Build example plugin
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Build/install bindings
run: pip install .
- name: Build example plugin
run: |
cd example
pumpkin-plugin-build main

View File

@ -1,18 +1,15 @@
name: Release
name: Main
on:
push:
workflow_dispatch:
workflow_run:
workflows: ["Update WIT"]
types: [completed]
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Build and release
main:
name: Build, test, and release
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -31,6 +28,14 @@ jobs:
- name: Build
run: python -m build
- name: Install built artifacts
run: pip install dist/*.whl
- name: Build example plugin to test
run: |
cd example
pumpkin-plugin-build main
- name: Set GITHUB_RELEASE_TAG & ARTIFACT_ID
run: |
set -eux