1.0.0 #18
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: publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout github repo | |
uses: actions/checkout@v2 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install FFTW | |
run: | | |
sudo apt-get install libfftw3-dev | |
- name: Install poetry dependencies | |
run: | | |
poetry install | |
- name: Build and publish | |
run: | | |
poetry version $(git describe --tags --abbrev=0) | |
poetry build | |
poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }} |