Skip to content

(cloud) Build and Deploy Test PyPI #1

(cloud) Build and Deploy Test PyPI

(cloud) Build and Deploy Test PyPI #1

name: (cloud) Build and Deploy Test PyPI
on:
# creates a button
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
type: choice
options:
- info
- warning
- debug
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m pip install -e .
- name: Build package
run: |
python -m build
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.BRUNO_TEST_PYPI }}
repository-url: https://test.pypi.org/legacy/