From c3315b73c860446b7873fb097a0ff1abe598d1ee Mon Sep 17 00:00:00 2001 From: Denis Kokorin Date: Sun, 7 Jul 2024 14:08:32 +0300 Subject: [PATCH] Do release when Github release is released --- .github/workflows/release.yml | 10 ++++------ .github/workflows/test-release.yml | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fafbed3..34b2cb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,9 @@ name: Release on: - push: - branches: - - release/** - tags: - - v* + release: + types: + - released env: PIP_CACHE_DIR: .cache/pip HATCH_CACHE_DIR: .cache/hatch @@ -15,7 +13,7 @@ env: HATCH_INDEX_REPO: main HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }} jobs: - test-publish: + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 2d3a0af..e2f176d 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -14,7 +14,7 @@ env: HATCH_INDEX_REPO: test HATCH_INDEX_AUTH: ${{ secrets.TEST_PYPI_TOKEN }} jobs: - test-publish: + test-release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4