Skip to content

Commit

Permalink
馃懛 Update GA for pypi publish
Browse files Browse the repository at this point in the history
  • Loading branch information
azogue committed Mar 10, 2024
1 parent df614d3 commit 932dd84
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ on:
jobs:
test-and-publish-flow:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11

- name: Run Poetry image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.3.1
poetry-version: 1.7.1

- name: Install library
run: poetry install --no-interaction
Expand All @@ -43,8 +45,9 @@ jobs:
- 'pyproject.toml'
- if: ${{ (github.ref == 'refs/heads/master') && (steps.changes.outputs.root == 'true')}}
name: Build and publish
env:
PYPI_USER: ${{ secrets.PYPI_USER }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: poetry publish --username $PYPI_USER --password $PYPI_PASSWORD --build
name: Build
run: poetry build

- if: ${{ (github.ref == 'refs/heads/master') && (steps.changes.outputs.root == 'true')}}
name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 932dd84

Please sign in to comment.