Skip to content

Commit

Permalink
try merging build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
rxu17 committed Feb 14, 2024
1 parent 336252a commit ddfdfac
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ jobs:
- uses: actions/checkout@v2
- uses: psf/black@stable

build-dist:
build-and-publish:
needs: [test, lint]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -74,12 +76,5 @@ jobs:
run: python -m build
- name: List contents of dist directory
run: ls -l dist

publish:
needs: [test, lint, build-dist]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit ddfdfac

Please sign in to comment.