Add functions to generate a similar key #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release to PyPI | |
on: | |
push: | |
tags: [ "v*.*" ] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
pypi: | |
name: Publish Release | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Make distribution | |
run: | | |
sudo apt-get update | |
sudo apt-get install cargo | |
pip --version | |
pip install wheel | |
python setup.py sdist | |
python setup.py bdist_wheel | |
- name: Publish on pypi (only for tag pushes) | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{secrets.PYPI_API_TOKEN}} | |
skip-existing: true |