From 6b82920943c9249ab9776fbf0fa0d7dbf9aad0ee Mon Sep 17 00:00:00 2001 From: Dustin Ingram Date: Tue, 23 Feb 2021 09:45:06 -0600 Subject: [PATCH] Run release workflow on release --- .github/workflows/release.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6563559..5bb5123 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,17 +1,17 @@ name: Release on: - push: - branches: - - main + release: + types: [published] jobs: build-and-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 + with: + ref: ${{ github.event.release.tag_name }} - name: Set up Python uses: actions/setup-python@v2 - with: - python-version: '3.x' - name: Install build dependencies run: pip install -U setuptools wheel build - name: Build @@ -19,5 +19,4 @@ jobs: - name: Publish uses: pypa/gh-action-pypi-publish@release/v1 with: - skip_existing: true password: ${{ secrets.pypi_password }}