Skip to content

Commit

Permalink
Publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Dynamos committed Jan 13, 2024
1 parent 5929e5f commit 410403e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Build, Test and Deploy

on:
pull_request:
push:
branches:
- main
- develop

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -32,7 +31,7 @@ jobs:
python tests/test_color_gen.py test_image.jpg 1
- name: Deploy to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
user: T-Dynamos
password: ${{ secrets.pypi_token }}

0 comments on commit 410403e

Please sign in to comment.