From 63a45ab2c0933087a8aed18a37642aafbc792bc5 Mon Sep 17 00:00:00 2001 From: Kjell Jorner <36157530+kjelljorner@users.noreply.github.com> Date: Tue, 29 Mar 2022 10:11:28 -0400 Subject: [PATCH] ci: change github.event.ref to github.ref (#1061) --- examples/github-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/github-deploy.yml b/examples/github-deploy.yml index 23180e14..7f4d4632 100644 --- a/examples/github-deploy.yml +++ b/examples/github-deploy.yml @@ -45,7 +45,7 @@ jobs: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest # upload to PyPI on every tag starting with 'v' - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # alternatively, to publish when a GitHub Release is created, use the following rule: # if: github.event_name == 'release' && github.event.action == 'published' steps: