Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bugfix/15072-update_b…
Browse files Browse the repository at this point in the history
…oto3
  • Loading branch information
nkarmanova committed Jan 24, 2024
2 parents 3e52d7f + ff5f23b commit 0777047
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "pypy-3.8"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -41,12 +41,29 @@ jobs:
- name: Build packages
if: "matrix.python-version == '3.8'"
run: |
pip install -U twine wheel
python setup.py sdist bdist_wheel
pip install -U twine wheel build
pyproject-build .
twine check dist/*
- name: Upload packages
- name: Save packages as GitHub Actions artifacts
if: "matrix.python-version == '3.8'"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: flowlogs-reader-packages
path: dist/*
path: dist/

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
needs:
- build
permissions:
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: flowlogs-reader-packages
path: dist/
- name: Upload packages to PyPi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 0777047

Please sign in to comment.