Skip to content

build

build #10

Workflow file for this run

name: build
on:
push:
tags:
- 'v*'
jobs:
publish-release:
name: publish release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: 🔗 Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
- name: 💎 Install
run: |
python -m pip install --no-cache-dir -r requirements-dev.txt
- name: 💃 Build release
if: success() && startsWith(github.ref, 'refs/tags')
run: |
python setup.py clean --all sdist bdist_wheel
- name: 📦 Publish release to PyPI
if: success() && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}