Skip to content

Commit

Permalink
fix: pypi auto publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin committed Dec 1, 2022
1 parent e2164ad commit 854ca33
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 34 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/publish.yml

This file was deleted.

23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Github Release/Publish PyPi

on:
push:
tags:
- "v*.*.*"

jobs:
release:
gh-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -13,3 +15,22 @@ jobs:
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true

publish-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.2.0

- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: Test

on:
pull_request:
Expand Down

0 comments on commit 854ca33

Please sign in to comment.