Skip to content

Commit

Permalink
Deploy 4
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Nov 25, 2023
1 parent ac57215 commit da9fddb
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
matrix:
python-version: ['3.10', '3.11', '3.12']
fail-fast: false
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -35,21 +38,12 @@ jobs:
run: |
python -m pytest --log-level=INFO
- name: Deploy
- name: Build
run: |
pip install twine build
python -m build
python -m twine upload dist/*
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit da9fddb

Please sign in to comment.