Skip to content

CD

CD #10

Workflow file for this run

name: Release
on:
workflow_run:
workflows: ["Run tests"]
types: [completed]
jobs:
pypi-publish:
name: Upload release to PyPI
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/seclook
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1