Skip to content

Small refactor to transcribe module #5

Small refactor to transcribe module

Small refactor to transcribe module #5

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
cache: pip
cache-dependency-path: "**/pyproject.toml"
- name: Install dependencies
run: python -m pip install --upgrade pip build
- name: 📦 Build package
run: python -m build --sdist --wheel --outdir dist/
- name: 🚀 Publish package on PyPi
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Generating checksum
run: |
cd dist/
find . -name '*.whl' -exec sh -c 'sha256sum "$0" > "${0%}.sha256"' {} \;
cd ..
- name: 📝 Create GitHub release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
generateReleaseNotes: true
artifacts: "dist/*.whl,dist/*.sha256"