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