diff --git a/.github/workflows/example-plugin.yml b/.github/workflows/example-plugin.yml deleted file mode 100644 index 2d1de61..0000000 --- a/.github/workflows/example-plugin.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/main.yml similarity index 87% rename from .github/workflows/release.yml rename to .github/workflows/main.yml index caf4186..6924df3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/main.yml @@ -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