Skip to content

Added PyPi Publish #308

Added PyPi Publish

Added PyPi Publish #308

Workflow file for this run

name: Test
on:
workflow_call:
pull_request: { }
push:
branches: [ main ]
tags: [ "*" ]
# workflow_dispatch:
jobs:
test:
runs-on: "ubuntu-latest"
env: # These need to be set in the repo or the builds will fail
HUBITAT_API_APP_ID: ${{ secrets.HUBITAT_API_APP_ID }}
HUBITAT_API_TOKEN: ${{ secrets.HUBITAT_API_TOKEN }}
HUBITAT_HOST: ${{ secrets.HUBITAT_HOST }}
HUBITAT_CLOUD_TOKEN: ${{ secrets.HUBITAT_CLOUD_TOKEN }}
steps:
- uses: actions/checkout@v2
- run: tree
- run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- run: task setup
- run: task security
- uses: nick-fields/retry@v2
with:
timeout_minutes: 5
max_attempts: 3
retry_on: error
command: task test
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
poetry_install_options: "--sync --no-root"
poetry_publish_options: "--dry-run"