Skip to content

fix(detector): create reset time window (#21) #7

fix(detector): create reset time window (#21)

fix(detector): create reset time window (#21) #7

Workflow file for this run

name: CD PyPi Staging
on:
workflow_dispatch:
push:
branches:
- "release/v*.*.*"
workflow_run:
workflows: ["CI Automated Testing"]
types:
- completed
jobs:
build-testpypi-distribution:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.12]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
testpypi-publish:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build-testpypi-distribution
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/anomalytics
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
verbose: true