Skip to content

Commit

Permalink
poetry test and publish in release c
Browse files Browse the repository at this point in the history
  • Loading branch information
MIWdlB committed May 17, 2024
1 parent cedb393 commit 193bb67
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Release CICD
on:
branches:
only:
- master
release:
types: [prereleased]
types: [released]
jobs:
build:
runs-on: ${{matrix.os}}
Expand Down Expand Up @@ -43,8 +46,10 @@ jobs:
with:
python-version: '3.9'
- name: Install poetry
run: pip install poetry
- name: Test build and publish
run: |
pip install poetry
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish --build -r testpypi --skip-existing -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.TESTPYPI_PASSWORD}}
- name: Build and publish
run: |
poetry publish --build -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}}
run: poetry publish --build -u ${{secrets.PYPI_USERNAME}} -p ${{secrets.PYPI_PASSWORD}}

0 comments on commit 193bb67

Please sign in to comment.