diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 0000000..b5d7370 --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,25 @@ +name: Production + +on: + push: + branches: + - main + +jobs: + build: + name: Build and Distribute Sentiment3D + runs-on: arm64-builder + timeout-minutes: 30 + + steps: + - name: Clone repo + uses: actions/checkout@v3 + + - name: Build Sentiment3D Python package + run: | + python3 -m build + + - name: Distribute Sentiment3D Python package + run: | + twine check dist/* && + twine upload --repository-url https://pypi.internal.compasspathways.com dist/* -u ${{ secrets.COMPASS_PYPI_USER }} -p ${{ secrets.COMPASS_PYPI_PASSWORD }}