Skip to content

Commit

Permalink
Move checks from steps to job
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Feb 23, 2024
1 parent 83bc765 commit c6b15a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
- build_wheels
- build_sdist_python_wheel
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
environment:
name: TestPyPI
url: https://test.pypi.org/project/mypy-dev/
Expand All @@ -150,7 +151,6 @@ jobs:
path: dist
merge-multiple: true
- name: Release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -188,7 +188,6 @@ jobs:
});
}
- name: Upload to TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
env:
TWINE_REPOSITORY: testpypi
TWINE_USERNAME: __token__
Expand Down

0 comments on commit c6b15a3

Please sign in to comment.