Skip to content

Commit

Permalink
Merge branch 'master' into letmaik/cryptography-interop
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyClaeys authored May 8, 2023
2 parents d058c13 + e527e79 commit 38313d8
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ name: Python package

on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]

jobs:
build:
Expand Down Expand Up @@ -97,3 +95,30 @@ jobs:
cp -r tests/ tmp_for_test/
cd tmp_for_test
pytest
release:
needs: [lint, test]

runs-on: ubuntu-latest

if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

steps:
- name: Download package from artifacts
uses: actions/download-artifact@v3
with:
name: dist
path: dist

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
pip install twine
- name: Upload package to PyPI
run: |
twine upload -u __token__ -p ${{ secrets.PYPI_TOKEN }} --skip-existing dist/*

0 comments on commit 38313d8

Please sign in to comment.