Skip to content

Commit

Permalink
Fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andylockran committed Jan 28, 2024
1 parent e09a1b8 commit f1137b4
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
name: Upload Python Package

on:
release:
types: [published]
push:
tags:
- "*.*.*"

permissions:
contents: read
Expand All @@ -26,14 +27,7 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Build package
run: poetry build
- name: Set poetry creds
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package
run: poetry publish
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit f1137b4

Please sign in to comment.