From 58f48bac60aeddd9b637a5f291c138a9d91c8c62 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sun, 12 May 2024 02:58:45 -0400 Subject: [PATCH] docs: rebuild wheels if gha file changes (#425) Signed-off-by: Henry Schreiner --- docs/pages/guides/gha_wheels.md | 4 ++++ .../{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} | 3 +++ 2 files changed, 7 insertions(+) diff --git a/docs/pages/guides/gha_wheels.md b/docs/pages/guides/gha_wheels.md index 52409e6d..a27de08f 100644 --- a/docs/pages/guides/gha_wheels.md +++ b/docs/pages/guides/gha_wheels.md @@ -30,6 +30,9 @@ on: release: types: - published + pull_request: + paths: + - .github/workflows/cd.yml ``` This will run on releases. If you use a develop branch, you could include @@ -38,6 +41,7 @@ This will run on releases. If you use a develop branch, you could include click a button in the GUI to trigger a build, which is perfect for testing wheels before making a release; you can download them from the "artifacts". You can even define variables that you can set in the GUI and access in the CI! +Finally, if you change the workflow itself in a PR, then rebuild the wheels too. [workflow_dispatch]: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/ diff --git a/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} b/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} index bd6ea26f..43c69b46 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} +++ b/{{cookiecutter.project_name}}/.github/workflows/{% if cookiecutter.__type=='compiled' %}cd.yml{% endif %} @@ -5,6 +5,9 @@ on: release: types: - published + pull_request: + paths: + - .github/workflows/cd.yml concurrency: group: {% raw %}${{ github.workflow }}-${{ github.ref }}{% endraw %}