Skip to content

Commit

Permalink
Merge pull request #12 from luxonis/actions-publish
Browse files Browse the repository at this point in the history
Add a PyPI publish action
  • Loading branch information
sokovninn authored Dec 12, 2023
2 parents f586978 + 45b9a13 commit 3b11cc3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Upload Python Package

on:
workflow_dispatch:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ To install with pip:
pip install datadreamer
```



To install `datadreamer` from source, follow these steps:

```bash
Expand Down

0 comments on commit 3b11cc3

Please sign in to comment.