Skip to content

Commit

Permalink
fix ci for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
helpmefindaname committed Sep 28, 2024
1 parent 7558e7d commit 01a8e3a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: 'Run tests for ci cd'
on:
push:
branches: [ main ]
tags:
- "*"
pull_request:
branches: [ main ]

Expand Down Expand Up @@ -84,10 +86,10 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
needs: [test, test-docker]
needs: [test]
if: github.ref_type == 'tag'
env:
python-version: 3.12
python-version: "3.12"
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -107,8 +109,7 @@ jobs:
- name: Publish
if: ${{env.is_package}}
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }} -vv
publish-docker:
name: Publish docker file and push it to a registry
runs-on: ubuntu-latest
Expand Down

0 comments on commit 01a8e3a

Please sign in to comment.