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: on:
push: push:
workflow_dispatch: workflow_dispatch:
workflow_run:
workflows: ["Update WIT"]
types: [completed]
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write
jobs: jobs:
release: main:
name: Build and release name: Build, test, and release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -31,6 +28,14 @@ jobs:
- name: Build - name: Build
run: python -m 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 - name: Set GITHUB_RELEASE_TAG & ARTIFACT_ID
run: | run: |
set -eux set -eux