Skip to content

Commit

Permalink
added publish action to upload to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Jan 31, 2022
1 parent 2516b85 commit 9fd4b40
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish Python Package to PyPI

on:
workflow_dispatch:
inputs:
tag:
description: 'Version Tag'
required: false
default: 'macosx-v2.50.0'


jobs:
deploy:
runs-on: ubuntu-latest
environment: production

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: "Download binaries from ${{ github.event.inputs.tag }}"
uses: robinraju/release-downloader@v1.3
with:
repository: ${{ github.repository }}
tag: ${{ github.event.inputs.tag }}
fileName: "*"
out-file-path: "dist"

- name: Test
run: |
ls dist
- name: Publish package
# if: ${{ false }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pyrealsense2 for macOS
# pyrealsense2 for macOSX
[![MacOS Build](https://github.com/cansik/pyrealsense2-macosx/actions/workflows/main.yml/badge.svg)](https://github.com/cansik/pyrealsense2-macosx/actions/workflows/main.yml) [![MacOS Test](https://github.com/cansik/pyrealsense2-macosx/actions/workflows/test.yml/badge.svg)](https://github.com/cansik/pyrealsense2-macosx/actions/workflows/test.yml) [![](images/python-versions.svg)](https://github.com/cansik/pyrealsense2-macosx/releases/) [![](images/macos-versions.svg)](https://github.com/cansik/pyrealsense2-macosx/releases/)

Prebuilt pyrealsense2 packages of the [librealsense](https://github.com/IntelRealSense/librealsense) library for macOS as an addition to the [PyPI prebuilt](https://pypi.org/project/pyrealsense2/) packages by Intel.
Expand Down

0 comments on commit 9fd4b40

Please sign in to comment.