Unify release and example-plugin CI workflows
This commit is contained in:
parent
e661e4de6a
commit
1c3f9f412f
22
.github/workflows/example-plugin.yml
vendored
22
.github/workflows/example-plugin.yml
vendored
@ -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
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user