Skip to content

Commit

Permalink
Add deploy action in ci.yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
stegm committed Nov 11, 2023
1 parent ca497fb commit a341c27
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,28 @@ jobs:
with:
name: dist
path: dist/*

deploy:
if: startsWith(github.event.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pykoplenti
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishi
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependecies
run: |
python -m pip install --upgrade pip
python -m pip install pipenv
pipenv install --dev
- name: Build package
run: |
pipenv run build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a341c27

Please sign in to comment.